Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: cut vs split (suggestions)

by cees (Curate)
on Apr 18, 2005 at 03:51 UTC ( #448726=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<>) {
        $col = 15;
    ...
        print substr($_, 0, $index), $/;
        $index = 0;
    }
    
  2. or download this
    $ time perl cut.pl numbers.csv > /dev/null
    
    ...
    real    0m1.081s
    user    0m0.866s
    sys     0m0.042s
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://448726]
help
Chatterbox?
[choroba]: Good morning!
[Discipulus]: good morning choroba!
[Corion]: Hi choroba, Discipulus! I hope you had a good weekend
erix looks for a red-herring joke but can't find one
Discipulus has worked physically and he rediscovered he is no more wont..
erix instead casts a baleful eye on another mysql q.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2017-01-23 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (192 votes). Check out past polls.