Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^9: incrementing already existing file

by broomduster (Priest)
on Mar 02, 2011 at 23:11 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-08-27 09:33 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (379 votes). Check out past polls.