Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Help me write a good reg-exp for this text

by benn (Priest)
on Sep 05, 2003 at 16:07 UTC ( #289255=note: print w/ replies, xml ) Need Help??


in reply to Help me write a good reg-exp for this text

As this looks like fixed-length formatting, I wouldn't go with a regex at all, but with...

my ($desc,$code) = unpack("A60 A*",$line);#or however long 1st field i +s. $description_hash{$code}=$desc;
Cheers, Ben. Update: as would hardburn :)


Comment on Re: Help me write a good reg-exp for this text
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2014-09-22 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (182 votes), past polls