Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Things I have learnt

by neilh (Pilgrim)
on Oct 22, 2004 at 02:40 UTC ( #401357=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open (FILE, "<file.txt");
    my @file=<FILE>;
    ...
    open (FILE, ">file.txt");
    print FILE "$file[0]\n";
    close FILE;
    
  2. or download this
    tie my @file, 'Tie::File', 'file.txt';
    $file[0]=$file[0] + 1;
    untie @file;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://401357]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-12-29 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (186 votes), past polls