Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: How to execute succcessful this Perl script in Linux, window and solaris?

by ikegami (Patriarch)
on Jun 29, 2006 at 07:50 UTC ( [id://558245]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to execute succcessful this Perl script in Linux, window and solaris?
in thread How to execute succcessful this Perl script in Linux, window and solaris?

close(STDERR) affects the whole program. There are better ways of suppressing warnings: (best to worse)

  • { no warnings 'warningtype'; ... } (Compile- and run-time, specific)
  • { no warnings; ... } (Compile- and run-time, broad)
  • { local $SIG{__WARN__} = {}; ... } (Run-time, broad)
  • { local *STDERR; ... } (Run-time, broad, has side effects.)

And you're only hiding the symptom, not fixing the problem. Like the warning says, a piece of code that should get executed is not getting executed.

Replies are listed 'Best First'.
Re^4: How to execute succcessful this Perl script in Linux, window and solaris?
by wxfjordan (Initiate) on Jun 29, 2006 at 09:45 UTC



    Thanks all the Perl senior!!!! (^o^)...


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-03-28 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found