Re: Absolute noobie question regarding opening files on Windows platform

2007-10-28 Thread Dr.Ruud
mAyur schreef: > always escape '\' in double quotes like this "\\". Inside single quotes or q{} too. Try for example: perl -wle ' print q{\} ' -- Affijn, Ruud "Gewoon is een tijger."l -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://le

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-26 Thread Ron Bergin
On Oct 25, 9:38 pm, [EMAIL PROTECTED] (mAyur) wrote: > On Oct 23, 6:55 pm, [EMAIL PROTECTED] (Paul Lalli) wrote: > > > > > On Oct 22, 3:27 pm, [EMAIL PROTECTED] (Ayesha) wrote: > > > > Hi all > > > > I wrote this code to read a file (in the same directory as the script) > > > on Win XP > > > **

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-26 Thread mAyur
On Oct 23, 6:55 pm, [EMAIL PROTECTED] (Paul Lalli) wrote: > On Oct 22, 3:27 pm, [EMAIL PROTECTED] (Ayesha) wrote: > > > > > > > Hi all > > > I wrote this code to read a file (in the same directory as the script) > > on Win XP > > *

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-25 Thread Ron Bergin
On Oct 23, 6:57 am, [EMAIL PROTECTED] (Paul Lalli) wrote: > On Oct 23, 12:27 am, [EMAIL PROTECTED] (Ayesha) wrote: > > > I was not in the right directory, but I learnt about forward and > > backward slashed also. Thanks to all who replied > > Arg. This is exactly what I was afraid of. The post ab

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-25 Thread Ron Bergin
On Oct 23, 6:57 am, [EMAIL PROTECTED] (Paul Lalli) wrote: > On Oct 23, 12:27 am, [EMAIL PROTECTED] (Ayesha) wrote: > > > I was not in the right directory, but I learnt about forward and > > backward slashed also. Thanks to all who replied > > Arg. This is exactly what I was afraid of. The post ab

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-23 Thread Jenda Krynicky
From: Paul Lalli <[EMAIL PROTECTED]> > You are asking *us* why Perl can't open the file, before you ask > *Perl* why it can't open the file. That is most illogical... > > Your die() message should include the $! variable, which contains the > last operating system error. It will tell you why the

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-23 Thread Paul Lalli
On Oct 23, 12:27 am, [EMAIL PROTECTED] (Ayesha) wrote: > I was not in the right directory, but I learnt about forward and > backward slashed also. Thanks to all who replied Arg. This is exactly what I was afraid of. The post about forward vs backwards slashes was wrong. Do not follow it. You

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-23 Thread Paul Lalli
On Oct 22, 3:27 pm, [EMAIL PROTECTED] (Ayesha) wrote: > Hi all > > I wrote this code to read a file (in the same directory as the script) > on Win XP > ***­ > #!/usr/local/bin/perl > use strict; > use wa

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-23 Thread Paul Lalli
On Oct 22, 7:49 pm, [EMAIL PROTECTED] (Yitzle) wrote: > The '/' is used on Unix, but not on Windows. > Try replacing it with a '\' > open(READFILE1,"<.\Sample_text_file.txt") or die ("Cannot open the given > file"); > Or maybe just drop the './' entirely. To the OP, please ignore this post comple

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-23 Thread Ayesha
On Oct 22, 9:32 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: > Ayesha wrote: > > Hi all > > > I wrote this code to read a file (in the same directory as the script) > > on Win XP > > ***­ > > #!/usr/local/bi

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-22 Thread Rob Dixon
Ayesha wrote: Hi all I wrote this code to read a file (in the same directory as the script) on Win XP *** #!/usr/local/bin/perl use strict; use warnings; open(READFILE1,"<./Sample_text_file.txt") or

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-22 Thread Jenda Krynicky
From: yitzle <[EMAIL PROTECTED]> > The '/' is used on Unix, but not on Windows. > Try replacing it with a '\' > open(READFILE1,"<.\Sample_text_file.txt") or die ("Cannot open the given > file"); > Or maybe just drop the './' entirely. Wrong and wrong. 1) Most system calls do not give a damn whet

Re: Absolute noobie question regarding opening files on Windows platform

2007-10-22 Thread yitzle
The '/' is used on Unix, but not on Windows. Try replacing it with a '\' open(READFILE1,"<.\Sample_text_file.txt") or die ("Cannot open the given file"); Or maybe just drop the './' entirely. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://le

Absolute noobie question regarding opening files on Windows platform

2007-10-22 Thread Ayesha
Hi all I wrote this code to read a file (in the same directory as the script) on Win XP *** #!/usr/local/bin/perl use strict; use warnings; open(READFILE1,"<./Sample_text_file.txt") or die ("Cannot ope