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

Re: Extracting Multiline Records from a file

by Transient (Hermit)
on Jun 25, 2009 at 14:28 UTC ( #774732=note: print w/replies, xml ) Need Help??


in reply to Extracting Multiline Records from a file

Not knowing the particular line you're trying to use, try enclosing the $PhoneNumber with \Q and \E a la:
/^.*\Q$PhoneNumber\E$ / ...
The \Q and \E tell the perl regex interpreter to ignore special characters that may exist in your $PhoneNumber variable (such as parens and dashes)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2020-07-03 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?