Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: can i disable certain warnings?

by jrsmith (Pilgrim)
on Jun 20, 2000 at 23:02 UTC ( #19068=note: print w/ replies, xml ) Need Help??


in reply to can i disable certain warnings?

well it's just from blank spaces being read from my input sources, and i can't seem to get rid of all of them becuz the format the sources are in seem to change each time we get a new one it's really frustrating... i'll try your suggestions, thanx a lot


Comment on Re: can i disable certain warnings?
RE: Re: can i disable certain warnings?
by BigJoe (Curate) on Jun 20, 2000 at 23:49 UTC
    What I do to make sure data is going to be in the vars that come in I usually use:
    if (! $myvalue ){ $myvalue = $defaultValue; }
    If this is what you are asking.

    --BigJoe
      Another way to write this is:
      $myvalue ||= $defaultValue;
      ...of course, if $myvalue had a "0" as a legitgimate value, you would want something like:
      defined $myvalue or $myvalue=$defaultValue;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-12-29 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls