Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Re: Record Separator affecting Regex

by jdporter (Canon)
on Nov 07, 2002 at 19:41 UTC ( #211199=note: print w/ replies, xml ) Need Help??

in reply to Re: Record Separator affecting Regex
in thread Record Separator affecting Regex

Yeah, I think you have the right idea here, Bird. Better than mine, under the circumstances.

I'd probably rework it as follows, to get rid of all that extra leading whitespace:

local $/ = ";\n"; while ( <> ) { s/^#.*$//mg; # kill comments s/^\s+//; # kill all remaining leading whitespace print "Query: $_\n"; }

Comment on Re: Re: Record Separator affecting Regex
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2015-11-26 17:35 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (705 votes), past polls