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

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

by QuillMeantTen (Friar)
on Jan 07, 2016 at 10:07 UTC ( #1152157=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    use autodie;
    open my $in,'<', "in.txt";
    open my $out,'>', "out.txt";
    
  2. or download this
    my $previous_line;
    
    ...
    
    close $in;
    close $out;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2022-06-26 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (83 votes). Check out past polls.

    Notices?