Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Call for code samples!

by brianarn (Chaplain)
on Nov 15, 2001 at 20:17 UTC ( [id://125598]=note: print w/replies, xml ) Need Help??


in reply to Call for code samples!

I know this is pretty simplistic, but is a good start possibly. One of the tools we use where I work is essentially a checklist of things that need to be done that day, at certain times. It can generate a CSV, but instead of using ',' as a delimiter, it uses ', ' with that extra whitespace - so after using Text::ParseWords to split up the CSV, I'd run this regex on each element to remove the leading whitespace
map s/^\s//, @fields;
That's not a direct sample of the code (I don't have it on this machine) but that's what it looked like as far as I remember.

~Brian

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-18 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found