RE: I/O Question

2006-06-15 Thread Moon, John
-Original Message- From: Doug Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 10:59 AM To: beginners@perl.org Subject: I/O Question I'm a first time perl user, jumping right into cgi on a mac, and I can't for the life of me figure out how to specify file paths

Re: I/O Question

2006-06-14 Thread Mr. Shawn H. Corey
On Wed, 2006-14-06 at 10:58 -0400, Doug Adams wrote: > I'm a first time perl user, jumping right into cgi on a mac, and I can't > for the > life of me figure out how to specify file paths other than to the > CGI-Executables folder (where my program is), or any subdirectory thereof. I > have been b

Re: I/O Question

2006-06-14 Thread Tom Phoenix
cify a file path with a string. (Is it that simple?) chdir('/Users/doug/wherever') or die "Can't chdir: $!"; So, why does your subject line say "I/O Question"? I couldn't find any question in your message. --Tom Phoenix Stonehenge Perl Training --

Re: I/O Question

2006-06-14 Thread Jeff Peng
On Wed, 14 Jun 2006 10:58:50 -0400, "Doug Adams" <[EMAIL PROTECTED]> said: > I'm a first time perl user, jumping right into cgi on a mac, I'm sorry for my first message.I didn't see your problem clearly,it's MAC OS,not Unix,sorry for it again. -- Jeff Peng [EMAIL PROTECTED] -- http://www.

Re: I/O Question

2006-06-14 Thread Jeff Peng
Hello, What OS do you use?I suppose than you run CGI scripts under Unix,then you could specify the path simply as: my $path='/your/path/'; But I would remind you that this path would be accessable to your CGI programs.In general,CGI is run by Apache which is run as 'nobody' user,so this path shou

I/O Question

2006-06-14 Thread Doug Adams
I'm a first time perl user, jumping right into cgi on a mac, and I can't for the life of me figure out how to specify file paths other than to the CGI-Executables folder (where my program is), or any subdirectory thereof. I have been bashing my head against my desk for the last couple days and I c

RE: [Win32] Basic I/O Question

2006-01-16 Thread Timothy Johnson
(response below) >-Original Message- >From: Hardly Armchair [mailto:[EMAIL PROTECTED] >Sent: Monday, January 16, 2006 3:19 PM >To: Timothy Johnson; beginners@perl.org >Subject: RE: [Win32] Basic I/O Question >> If you want to use the less-than operator (or a >&

RE: [Win32] Basic I/O Question

2006-01-16 Thread Hardly Armchair
--- Timothy Johnson <[EMAIL PROTECTED]> wrote: > The diamond operator works fine without escaping > your backslashes, but I > recommend putting quotes around your arguments. The > following works > just fine for me: > > c:\> while.pl "c:\documents and > settings\username\desktop\file.txt"

RE: [Win32] Basic I/O Question

2006-01-16 Thread Timothy Johnson
to:[EMAIL PROTECTED] Sent: Sunday, January 15, 2006 6:41 PM To: beginners@perl.org Subject: [Win32] Basic I/O Question Hello List, I am running Perl for Win32 and have been executing my programs through the 'cmd.exe' shell. I am confused about how to input paths to files in a command-line cont

[Win32] Basic I/O Question

2006-01-15 Thread Hardly Armchair
Hello List, I am running Perl for Win32 and have been executing my programs through the 'cmd.exe' shell. I am confused about how to input paths to files in a command-line context so that perl will understand. Using the diamond operator (<>) in my programs allows me to type my program at the comm