Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Playing with module::variables and -s

by pernod (Chaplain)
on Oct 18, 2004 at 18:20 UTC ( [id://400261]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    1: package MyMod;
    2: #$value = "Ding!";
    ...
    4:   return $value;
    5: }
    6: 1;
    
  2. or download this
    1: use MyMod;
    2: print MyMod::spit(), "\n";
    
  3. or download this
    c:/monks/temp $perl -s ss.pl -MyMod::value="Hey Monks!"
    Hey Monks!
    
  4. or download this
    c:/monks/temp $perl -s ss.pl -MyMod::value="Hey Monks!"
    Ding!
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found