Welcome to the Monastery | |
PerlMonks |
Re: Regular Expression help, MS Access Pipe delimited export gone badby CubicSpline (Friar) |
on Nov 06, 2001 at 18:55 UTC ( [id://123586]=note: print w/replies, xml ) | Need Help?? |
From my testing, your code would work fine if you changed the line: unless ($line =~/JPG?/){ chomp; } to be: unless ($line =~/JPG?/){ chomp( $line ); } Seeing other ways to do what you want is a great way to learn Perl, but it's also nice to know what is going wrong in the code that you write.
HTH.
In Section
Seekers of Perl Wisdom
|
|