Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: golf: shortest way to parse a pipe delimited file

by bageler (Hermit)
on Nov 10, 2005 at 19:49 UTC ( [id://507517]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Bareword found where operator expected at -e line 1, near "0F"
            (Missing operator before F?)
    syntax error at -e line 1, near "}="
    Execution of -e aborted due to compilation errors.
    
  2. or download this
    #1234567890123456789012345678901234567890123456789012345
    perl -anF"\|" -le"$f{shift@F}=[@F[1..$#F]]" pipe.txt
    

Log In?
Username:
Password:

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

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

    No recent polls found