Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

(jeffa) 3Re: Unable to save changes using IO::File

by jeffa (Bishop)
on Sep 07, 2002 at 04:51 UTC ( [id://195838]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use IO::File;
    ...
    $out->close or die "can't close output";
    
    rename('tmp.mif','test.mif') or die "can't rename";
    
  2. or download this
    use strict;
    use Tie::File;
    ...
    tie @file, 'Tie::File', 'test.mif' or die "cannot tie file";
    
    s/(FchangeBar )Yes/$1No/g for @file;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-24 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found