Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^6: global var

by pryrt (Abbot)
on Apr 06, 2017 at 22:15 UTC ( [id://1187357]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package pm1187349;
    use warnings;
    ...
    sub someFunction {
        print "I am some function\n";
    }
    
  2. or download this
    use warnings;
    use strict;
    ...
    # use them
    pm1187349::someFunction();
    print "someScalar = ${pm1187349::someScalar}\n";
    
  3. or download this
    use warnings;
    use strict;
    ...
    # use them
    someFunction();
    print "someScalar = ${someScalar}\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2025-01-16 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (54 votes). Check out past polls.