Tengo el siguiente código en Ruby
logo=
def mostrar text
w="|"
text.each do |str|
str.scan(/./) do |c|
STDOUT.flush
if w=="|"
print "\b"+c +w
w="/"
elsif w=="/"
print "\b"+c +w
w="-"
elsif w=="-"
print "\b"+c +w
w="\\"
else
print "\b"+c +w
w="|"
end
sleep 0.04
end
print "\b "
puts ""
end
end
mostrar(logo)
Mi pregunta es si alguien me podría ayudar a traducirlo a Perl porque lo he intentado ...