Re: Not able to open a file.

2008-08-19 Thread jis
On Aug 15, 10:43 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > Rob Dixon wrote: > > > I am sorry, but even that work around won't help. I have downloaded a copy > > of > > Perl Express and I see that it is not running your script at all when you > > are > > debugging. If you look in $0 you will see

Re: Not able to open a file.

2008-08-15 Thread Rob Dixon
Rob Dixon wrote: > > I am sorry, but even that work around won't help. I have downloaded a copy of > Perl Express and I see that it is not running your script at all when you are > debugging. If you look in $0 you will see that it contains > > C:\Program Files\Perl Express\Debug\temp1.cgi > >

Re: Not able to open a file.

2008-08-15 Thread Rob Dixon
Rob Dixon wrote: > jis wrote: >> I tried what John suggested. >> the exact error code is "Couldnt open C:/Program Files/Perl Express/ >> Debug/pdef.txt - No such file or directory" >> (yes, iam using perl express) >> i do not want to ask user (who finally uses my executable) to put the >> file alwa

Re: Not able to open a file.

2008-08-15 Thread Rob Dixon
jis wrote: > > I tried what John suggested. > the exact error code is "Couldnt open C:/Program Files/Perl Express/ > Debug/pdef.txt - No such file or directory" > (yes, iam using perl express) > i do not want to ask user (who finally uses my executable) to put the > file always on a fixed location

Re: Not able to open a file.

2008-08-15 Thread Jishnupraveen gira
the error code is "Couldnt open C:/Program Files/Perl Express/Debug/pdef.txt - No such file or directory" But my script is in the path: C:\perl123 and the file pdef.txt is in the same path.. regards, jis On 8/14/08, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > > On Thu, 2008-08-14 at 03:42 -

Re: Not able to open a file.

2008-08-14 Thread jis
On Aug 14, 1:30 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: > jis wrote: > > On Aug 13, 7:46 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > >> jis wrote: > > >>> 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

Re: Not able to open a file.

2008-08-14 Thread Mr. Shawn H. Corey
On Thu, 2008-08-14 at 15:02 +0100, Jishnupraveen gira wrote: > > the error code is > > "Couldnt open C:/Program Files/Perl Express/Debug/pdef.txt - No such > file or directory" > > But my script is in the path: > C:\perl123 > > and the file pdef.txt is in the same path.. Try adding the foll

Re: Not able to open a file.

2008-08-14 Thread Rob Dixon
jis wrote: > On Aug 13, 7:46 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: >> jis wrote: >> >>> 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; >>>

Re: Not able to open a file.

2008-08-14 Thread Mr. Shawn H. Corey
On Thu, 2008-08-14 at 03:42 -0700, jis wrote: > > It did not make any difference. > it says there is no such file in the $Bin path.. > Ofcourse there is no such file in that path. i want to look in the > path iam executing the code. > > Any one can hep me! What is the error message? Please copy

RE: Not able to open a file.

2008-08-14 Thread Stewart Anderson
> -Original Message- > From: Xavier Mas [mailto:[EMAIL PROTECTED] > Sent: 14 August 2008 12:00 > To: beginners@perl.org > Subject: Re: Not able to open a file. > > El Thursday 14 August 2008 12:42:15 jis va escriure: > > On Aug 13, 7:46 pm, [EMAIL PROTE

Re: Not able to open a file.

2008-08-14 Thread Xavier Mas
El Thursday 14 August 2008 12:42:15 jis va escriure: > On Aug 13, 7:46 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > > jis wrote: > > > Hi > > > > Hello, > > > > > 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 th

Re: Not able to open a file.

2008-08-14 Thread jis
On Aug 13, 7:46 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > jis wrote: > > Hi > > Hello, > > > 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 stri

Re: Not able to open a file.

2008-08-13 Thread John W. Krahn
jis wrote: Hi Hello, 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 -

Re: Not able to open a file.

2008-08-13 Thread Mr. Shawn H. Corey
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

Not able to open a file.

2008-08-13 Thread jis
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