Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^6: global var

by pryrt (Monsignor)
on Apr 06, 2017 at 22:15 UTC ( #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? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2021-08-03 20:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (40 votes). Check out past polls.

    Notices?