On Wed, 2008-08-13 at 03:12 -0700, jis wrote:
> Hi
>
> I simply could not open a file which is in the same path as my script
> is.
> i could open the file if i explicitly mention the path. but i dont
> want that..
>
> my script is..
>
> use strict;
> use warnings;
> my $fil="pdef.txt";
> open(DEFILE,"<$fil")|| die "Couldnt open pdef file - $!\n";
>
>
> Any idea what is wrong..( the file exists in the same path as the
> script is.)
> regards,
> jis
>
>
Are you running your script in the directory where the file is?
--
Just my 0.00000002 million dollars worth,
Shawn
"Where there's duct tape, there's hope."
"Perl is the duct tape of the Internet."
Hassan Schroeder, Sun's first webmaster
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/