Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Regular Expression help, MS Access Pipe delimited export gone bad

by CubicSpline (Friar)
on Nov 06, 2001 at 18:55 UTC ( [id://123586]=note: print w/replies, xml ) Need Help??


in reply to Regular Expression help, MS Access Pipe delimited export gone bad

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.
~CS

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://123586]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found