Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: looking for Advice on how strict i should really be

by perlmonkey (Hermit)
on Jul 22, 2000 at 09:23 UTC ( [id://23887]=note: print w/replies, xml ) Need Help??


in reply to looking for Advice on how strict i should really be

Try "use vars ...". I dont know 'our', havent read the perldoc yet. This should work, unless there is a bug in perl2ex:
use strict; use vars '$opt_h'; getopts('h'); if ($opt_h) { print 'do something'; }
Give it a shot.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (None)
    As of 2024-04-19 00:10 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found