Irfan J Sayed wrote:
Hi ,

I am using following code
#!/usr/local/bin/perl

 # Main program
use warnings;
 use strict;

 my $file = "c:\backup.pl";
 open(FH,$file) || die " can't open a file"; [...]

For the die statement, use this instead:

die " can't open this file: $file reason: $!";

Your problem is that \b has a special meaning in a double-quoted string. It's a backspace character. Escape the backslash by putting another backslash before it.




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to