Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: selecting columns from a tab-separated-values file

by Kenosis (Priest)
on Jan 22, 2013 at 04:50 UTC ( #1014569=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    "FIRST\tMIDDLE\tLAST\tSTRNO\tSTRNAME\tCITY\tSTATE\tZIP"
      1       2      3      4       5       6     7 ---->
    
    my @capture = ( split /\t/, $line, 7 )[ 2, 0, 5 ];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014569]
help
Chatterbox?
[Lotus1]: Cosmic37 if you undef $/ in a local context to a block it won't affect the global version after the block finishes
[Lotus1]: or you can just do local $/ in a block
[erix]: cool
[Cosmic37]: thank you Lotus I understand

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-06-29 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (673 votes). Check out past polls.