Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 having a coffee break in the Monastery: (3)
As of 2024-09-13 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (17 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.