Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 browsing the Monastery: (10)
As of 2014-07-10 10:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (206 votes), past polls