Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Playing with module::variables and -s

by pernod (Chaplain)
on Oct 18, 2004 at 18:20 UTC ( #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
Node Status?
node history
Node Type: note [id://400261]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2020-11-24 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?