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: Another noobie question about perl on Windows - perl running in background

2007-10-25 Thread Matthew Whipple
Ayesha wrote: > Hi all > > Thanks to all who replied to my question yesterday. I am using perl- > express IDE to write a small perl code. Sometimes the code runs for a > long time (infinite loop logical error), I close the editor but > realize that the computer is suddenly running slow. So I have t

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: Another noobie question about perl on Windows - perl running in background

2007-10-23 Thread Jeff Pang
If perl consume your system source large,it mostly has two reasons: 1) Your task is really hard,ie,to handle a huge file. 2) Wrong usage with perl code. So you'd better to describe clearly what you are doing and how you do it.Also posting some code piece here is better. On 10/24/07, Ayesha <[EMA

Another noobie question about perl on Windows - perl running in background

2007-10-23 Thread Ayesha
Hi all Thanks to all who replied to my question yesterday. I am using perl- express IDE to write a small perl code. Sometimes the code runs for a long time (infinite loop logical error), I close the editor but realize that the computer is suddenly running slow. So I have to go to task manager and

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

Re: Noobie question

2001-06-14 Thread Michael D . Risser
On Thursday 14 June 2001 08:04 am, you wrote: > OK I give up > > TMTOWTDI? > There's More Than One Way To Do It

Re: Noobie question

2001-06-13 Thread Michael D . Risser
At least we were a little more friendly about it, as well as point to some resources that would be more help in the long run. And let's not forget TMTOWTDI. --SNIP-- > Fucking typical. --SNIP-- > I hope this answer is more useful than that suggested by the others.

Re: Noobie question

2001-06-13 Thread Chuck Ivy
On Wednesday, June 13, 2001, at 12:05 PM, Ward, Stefan wrote: > Does anyone have an example of a way to write a perl script that will > go out > hit a data base table, pull in a column for that table and use that > column > in a dropdown list? I know what to do once I get that variable > sel

Re: Noobie question

2001-06-13 Thread Evgeny Goldin (aka Genie)
This should help : http://dbi.symbolstone.org/ http://search.cpan.org/doc/TIMB/DBI-1.18/DBI.pm

Re: Noobie question

2001-06-13 Thread Michael D . Risser
On Wednesday 13 June 2001 12:22 pm, Peter Scott wrote: > At 12:05 PM 6/13/01 -0700, Ward, Stefan wrote: > >Does anyone have an example of a way to write a perl script that will go > > out hit a data base table, pull in a column for that table and use that > > column in a dropdown list? I know wha

Re: Noobie question

2001-06-13 Thread Peter Scott
At 12:05 PM 6/13/01 -0700, Ward, Stefan wrote: >Does anyone have an example of a way to write a perl script that will go out >hit a data base table, pull in a column for that table and use that column >in a dropdown list? I know what to do once I get that variable selected by >RTFriendlyM, but co

Noobie question

2001-06-13 Thread Ward, Stefan
Does anyone have an example of a way to write a perl script that will go out hit a data base table, pull in a column for that table and use that column in a dropdown list? I know what to do once I get that variable selected by RTFriendlyM, but couldn't find a clear example of this. Thanks, Ste