Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: how to comment the lines if found a match

by matrixmadhan (Beadle)
on Dec 06, 2008 at 14:15 UTC ( #728549=note: print w/replies, xml ) Need Help??


in reply to Re: how to comment the lines if found a match
in thread how to comment the lines if found a match

Would you mind, if I suggest very small suggestion to your code?

$! will give more information regarding the type of failure

open (FILE_A, "$file_a") or die "couldn't open the file!"; >>open (FILE_A, "$file_a") or die "couldn't open the file $file_a <$!> +!";
close function will also fail, its better to check that as well

close (FILE_A); >>close (FILE_A) or die "Unable to close file";

Replies are listed 'Best First'.
Re^3: how to comment the lines if found a match
by kavitha (Initiate) on Dec 08, 2008 at 23:44 UTC
    Thanks alot. This works exactly how I want. Thanks for all your support.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2023-10-01 01:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?