Just another Perl shrine | |
PerlMonks |
Re: RFC: beginner level script improvementby jwkrahn (Abbot) |
on Sep 21, 2013 at 21:54 UTC ( [id://1055155]=note: print w/replies, xml ) | Need Help?? |
The \l escape sequence in interpreted by perl to mean "lower case the next character" so those strings are just the one character \r. See lcfirst.
'x' is not a valid octal digit so that string consists of three characters, "\0", 'x' and 'a'. Perhaps you meant "\x0a"? If you need help with network compatible line endings see the Socket module.
You use this statement 18 times but sleep does not accept fractions of a second, only whole seconds. Perhaps you should look at the Time::HiRes module or Perl's select function.
In Section
Meditations
|
|