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

Re: Simple RegEx Substring Extraction from a Delimited Text Record

by ayrnieu (Beadle)
on Mar 15, 2006 at 05:38 UTC ( #536779=note: print w/replies, xml ) Need Help??


in reply to Simple RegEx Substring Extraction from a Delimited Text Record

($int) = $rec =~ /(INT=\d*(?=!|$))/

Or you can internalize your DB into structured data when you load it, rather than pass around such strings. Or you can consider Data::Record.

I tend to make a blessed array for the database, and fill it with objects for the records. At least at first.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2022-01-18 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (52 votes). Check out past polls.

    Notices?