> I have successfully checked a file in the same dir ,
> my question is do I have to chdir when doing a
> if (-e filename.dat)
I don't think you will get success without a quote for 'filename.dat'.
It could be the return value for sub filename concating sub dat, be
nothing.
>
> I tried looking f
I have successfully checked a file in the same dir ,
my question is do I have to chdir when doing a
if (-e filename.dat)
and then change back to the cgi-bin dir?
www.mysite.com/cgi-bin is where my perl files are.
www.mysite.com/html is where the file I want to check is.
chdir "/html";
if (-e file
> I am calling a sub with:
>
> &Navigate(%modules, %settings);
>
Drop the C<&> until you know what it is for.
> And reading it like:
>
> sub Navigate {
> (%modules, %settings) = @_;
>
Perl flattens lists automagically, so when it sees your C<%modules,
%settings> it flattens it to on
If you have two hashes, you are probably better off passing by
reference, otherwise the first hash will slurp up the second hash on
the [EMAIL PROTECTED]
Something like
&Navigate(\%modules,\%settings);
sub Navigate {
my ($module_ref,$settings_ref)[EMAIL PROTECTED];
Sean
On Oct 14, 2004,
&Navigate(%modules, %settings);
And reading it like:
sub Navigate {
(%modules, %settings) = @_;
Only the first sub gets passed...
See how tired I am? I ment hash, only the first HASH get passed LOL.
aNc
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR
I am calling a sub with:
&Navigate(%modules, %settings);
And reading it like:
sub Navigate {
(%modules, %settings) = @_;
Only the first sub gets passed...
Been a while and I cant figure out what I am doing wrong. To tired to
screw arround with it so I would love if some kind soul could poi
Jeff Herbeck <[EMAIL PROTECTED]> wrote:
: Hello,
:
: I want to be able to have a user login with apache
: authentication (which I have that part working) and then
: take a URL from a form and download the file in that url
: and put it in a directory for that user. Here is what I
: have so far. I
On Thu, Oct 14, 2004 at 09:09:00AM -0500, Jeff Herbeck wrote:
> Here is what I have so far. It runs, but it doesn't do anything but
> display "aaa"
>
> #!/usr/bin/perl
Where are use strict and use warnings?
> getstore("$URL", "/var/www/html/$remote_user/");
According to the perldoc for getst
On Thu, 14 Oct 2004, Jeff Herbeck wrote:
> getstore("$URL", "/var/www/html/$remote_user/");
LWP::Simple's getstore() method takes a URL and a file as arguments.
You've given it a URL and a directory.
Try something like this:
getstore("$URL", "/var/www/html/$remote_user/foo");
(Note that i
Hello,
I want to be able to have a user login with apache authentication
(which I have that part working) and then take a URL from a form and
download the file in that url and put it in a directory for that user.
Here is what I have so far. It runs, but it doesn't do anything but
display "aaa"
10 matches
Mail list logo