Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Pattern with split

by Hofmator (Curate)
on Aug 07, 2006 at 14:22 UTC ( [id://565953]=note: print w/replies, xml ) Need Help??


in reply to Pattern with split

Well, this is speccing by example ... not-enough-information error :)

But judging from the info you give us I would tend towards a capturing regex and not use split. Something like

my ($type,$id,$no,$date1,$text,$date2)=/()()()()()()/;
where the inside and outside of the parentheses are filled appropriately.

-- Hofmator

Log In?
Username:
Password:

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

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

    No recent polls found