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

Using Global Variables in Perl

by gzayzay (Sexton)
on Apr 22, 2008 at 16:37 UTC ( [id://682213]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use var qw($readMode $writeMode $appendMode);
    ...
    my $mode = pop(@_)
    open(FILENAME, $mode, EXPR);
    }
    
  2. or download this
    use strict;
    
    require "moduleA.pl";
    openFile("someOtherStuff", $readMode);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-03-28 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found