Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Extracting Columns from line

by Don Coyote (Hermit)
on Oct 23, 2013 at 12:22 UTC ( [id://1059299]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
      push @cols, split; 
    }
    close $wantcols;
    
  2. or download this
    my @valarray = [ @cols ]; #construct wanted headers
    my $datavalues, '<', '/path/to/file2' or die '$!';
    ...
    
    close $datavalues;
    
  3. or download this
    print map { @{ $valarray[$_] } , $/ } 0..$#valarray;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-26 03:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found