Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Better way to define global variables

by kcott (Chancellor)
on Jul 25, 2013 at 14:36 UTC ( #1046360=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    package Utilities;
    our $UTIL_THAT = "util_that";
  2. or download this
    $ perl -Mstrict -Mwarnings -E '
        use Utilities;                     
    Global symbol "$SYS_DIR" requires explicit package name at -e line 3.
    Execution of -e aborted due to compilation errors.
  3. or download this
    $ perl -Mstrict -Mwarnings -E '
        use Utilities qw{$SYS_DIR};        
        say $SYS_DIR;
  4. or download this
    $ perl -Mstrict -Mwarnings -E '
        use Utilities qw{:SYS};            
        say $SYS_DIR;
  5. or download this
    $ perl -Mstrict -Mwarnings -E '
        use Utilities qw{:UTIL $SYS_OTHER};

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1046360]
[thezip]: Our cat is single-handedly (pawed-ly?) solving our field mouse problem. About four critters in the last week alone.
[thezip]: Amazing speed and stealth in that one.
[GotToBTru]: You can't tunafish, but some seafood companies can tunafish. More fun with English.
[virtualsue]: a veterinarian told me to cut down on my cat's food. i said, when i do that she just catches more mice
[thezip]: My dogs are also excellent mousers, at least that's what they tell me.
[GotToBTru]: our beagle has dispatched 3 rabbits to the Great Hutch in the Sky since March.
[thezip]: I can always tell when the dogs have been mousing, as there is a concentric ring of mud around the end of their snouts when they do.
[thezip]: As for more physical evidence, that always seems to be missing somehow

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (16)
As of 2017-11-17 19:53 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (272 votes). Check out past polls.