when we put in our program something like this:
open FILE, ">$file" or die "Cant open file: $!";
if the program dies , it will print for example something like:
Cant open file: myfile at c:\perlcode\file.pl line 100
but how can i prevent from printing 'at c:\perlcode\file.pl line 100'
and print only my line?
Cant open file: myfile
Thanks for your help.
open FILE, ">$file" or die "Cant open file: $!";
if the program dies , it will print for example something like:
Cant open file: myfile at c:\perlcode\file.pl line 100
but how can i prevent from printing 'at c:\perlcode\file.pl line 100'
and print only my line?
Cant open file: myfile
Thanks for your help.