Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Simple RegEx Substring Extraction from a Delimited Text Record

by ayrnieu (Beadle)
on Mar 15, 2006 at 05:38 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-24 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found