Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: After i made the script of commenting out lines , it starts to make bugs :S <<HELP!>>

by strat (Canon)
on Oct 08, 2007 at 10:25 UTC ( #643435=note: print w/ replies, xml ) Need Help??


in reply to After i made the script of commenting out lines , it starts to make bugs :S <<HELP!>>

open HAN,$file || die "error opening file: $!";

This doesn't do what you expect it to do because || binds stronger than , and so you are executing something like open HAN, ( $file || die ... )

Better use one of the following ways (I recommend the first way):

open( HAN, $file ) or die "error opening file: $!"; open( HAN, $file ) || die "error opening file: $!"; open HAN, $file or die "error opening file: $!";

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"


Comment on Re: After i made the script of commenting out lines , it starts to make bugs :S <<HELP!>>
Select or Download Code
Re^2: After i made the script of commenting out lines , it starts to make bugs :S <<HELP!>>
by firewall00 (Acolyte) on Oct 09, 2007 at 08:43 UTC

    Thanks for you Tip

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-07-06 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls