Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 avoiding work at the Monastery: (3)
As of 2024-04-26 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found