Think about Loose Coupling | |
PerlMonks |
Re: Regex error when [] occurs in file..by ysth (Canon) |
on Mar 03, 2008 at 21:27 UTC ( [id://671722]=note: print w/replies, xml ) | Need Help?? |
while (chomp(my $temp=<INPUT>)){Don't do that. Do your chomp inside the loop. Otherwise, you'll get a warning (you do have warnings enabled, don't you?) when you reach the end and <INPUT> returns undef, since chomp expects a string, not undef.
In Section
Seekers of Perl Wisdom
|
|