Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://643435]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found