Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^9: incrementing already existing file

by broomduster (Priest)
on Mar 02, 2011 at 23:11 UTC ( [id://891127]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @fields = ( split /\s+/ );           # need to hold on to all field
    +s for later
    my( $index, $label ) = @fields[4, -1];  # this is an array slice
    
  2. or download this
    use 5.010;
    
    ...
        when ( 'B' ) { $fields[ -2 ] = $y; }
        default { say "OOPS!  bad label"; }
    }
    
  3. or download this
    say join "\t", @fields;    # separates fields with TAB
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://891127]
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 01:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found