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

Re: How to loop over two lines, alter a value in the current line and save it to the previous line?

by 1nickt (Canon)
on Jan 07, 2016 at 10:23 UTC ( [id://1152160]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    bar 2
    baz 3
    qux 4
    
  2. or download this
    foo: 1 now changed to 2
    bar: 2 now changed to 4
    baz: 3 now changed to 7
    qux: 4 now changed to 11
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found