Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How do you save a perl script?

by Adam (Vicar)
on Mar 24, 2001 at 07:20 UTC ( [id://66821]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    my $persistentVar = $defaultvalue;
    ...
      close FH 
        or warn "Failed to close $persistentStateFile, $!" and exit(1);
    }
    
  2. or download this
    END {
        open FH, "< $0" or warn "Failed to preserve state... couldn't open
    + '$0', $!" and exit(1);
    ...
        print FH $_;
        close $file;
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found