-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
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
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
--
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.
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'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
(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
>&
--- 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"
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
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
10 matches
Mail list logo