"be consistent" | |
PerlMonks |
Re: while loop over filehandleby spartacus9 (Beadle) |
on Sep 23, 2002 at 05:09 UTC ( [id://200010]=note: print w/replies, xml ) | Need Help?? |
instead of using the regex to remove the \r and \n, try:
that will remove any newline characters from the string if they exist. i'm not sure what your "next if !$user" line is doing. since you're already inside a while loop, that logic should already be taken care of without having to check the $user variable again.
In Section
Seekers of Perl Wisdom
|
|