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
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
> > > **
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
> > *
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
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
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
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
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
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
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
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
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
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
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
14 matches
Mail list logo