hello,
Quick question,
what does this line do?
push(@files,$File::Find::name) if (/$ending$/i);
I wrote a simalor script to find a certain file on my computer and the only
way I got it to work was by using this code in my WANTED sub
if ( File::Find::name eq File::Find::dir/$file ) {
Hi all.
I'm in the process of modifying an existing CGI script. There is a page of
HTML which has an anchor to the script which, when run, modifies the
HTML file which linked to it and redisplays it. At present this is done by
returning just the header line
Location: http://www.domain.com/ref
Okay, I think that I'm getting closer. I've condensed my code so that it is
a little clearer.
perl decision making code:
if ($choice eq "") {
checkemailform(); # displays form
}
elsif ($choice eq "check") {
checkemail(); # inserts the data
}
Are you suggesting this for the form?:
I want to create a web page that calls on another web page and automatically
refresh the other webpage every minute. can I do this in JS alone? Perl
alone? or do I have to use both?
Thanks for the help, I just need to be pointed in a direction...
Lou
--
To unsubscribe, e-mail: [EMAIL PROTECTED
Rob Dixon wrote:
> Hi all.
>
> I'm in the process of modifying an existing CGI script. There is a
> page of HTML which has an anchor to the script which, when run,
> modifies the HTML file which linked to it and redisplays it. At
> present this is done by returning just the header line
>
> Lo
Luinrandir Hernsen wrote:
> I want to create a web page that calls on another web page and
> automatically refresh the other webpage every minute. can I do this
> in JS alone? Perl alone? or do I have to use both?
>
> Thanks for the help, I just need to be pointed in a direction...
You can have a
Hi all,
A CGI program made in Perl gives me a bad error and I don't know why nor how
to solve it.
The error is:
perl.exe - Application Error The instruction at "0x28068533" referenced
memory at "0x0004". The memory could not be "read". Click on OK to
terminate the program Click on CANCEL to d
By writing it this way:
open(OUTPUTFILE, ">". $outputFile);
the script thinks that you are trying to open a file called
>Out_input2.txt
with the "greater than" sign actually being part of the file name. But what
you want to do is open
Out_input2.txt
for writing, in whi
Not really. If your form allows uploads, your form allows uploads. That's
where DoS comes into play. Disguising the location of your code is a start,
but you still have to figure out what you're going to do if someone tries to
paste rogue code into your form or hit you with an obnoxiously large upl
Scot Robnett wrote:
> By writing it this way:
>
> open(OUTPUTFILE, ">". $outputFile);
>
> the script thinks that you are trying to open a file called
>
> >Out_input2.txt
>
> with the "greater than" sign actually being part of the file name.
> But what you want to do is open
>
>
for more info: perldoc File::Find
within your "wanted" sub the default variable $_ is set to the name of the
current filename within the current directory.
$File::Find::dir gives you the path of the current directory
$File::Find::name gives you the full path to the current file
(there are some o
Hi teddy,
I ran into this exact same problem (on win2k using DBI and fork()) and
eventually gave up. Alas. Someone more knowledgable will have to give us
a definative answer but my primitive understanding is that fork() typically
uses the system's implementation of the fork() command and that W
Hey all,
Anyone move scripts between IIS and Apache or need to write scripts that
work on both? The problem I'm facing is that IIS reports the current
working directory (CWD) as the root dir of the "application" as defined in
the IIS control panel while apache reports the CWD as the actual direct
Hey all,
I just subscribed to this list, so I hope I'm not asking something that has
been discussed recently...
I'm using the CGI package to write a script. I'm modeling my script off the
Perl Cookbook example script called, "chemiserie," using %States and using the
$Current_Screen methodology
Hello,
In a recent perl script I wrote, I have a procedure, read_config(),
which reads a
config file I have set up and sets a hash to what is in the file. Now,
before you
mention it, I have stricts on and use the -w on the 1st line, and the
following
message appears.
main::read_config() calle
looks like you tried to call the sub before you defined it, try putting a
definition just below all the use statements or just move the whole sub up
there
-Ken
-Original Message-
From: Christopher G Tantalo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 3:43 PM
To: [EMAIL PROTEC
I guess it is a Perl 5.8 bug because this didn't happen in Perl 5.6.1.
Or, ... it might be a DBI module error, but I don't think so.
Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]
- Original Message -
From: "Peter Kappus" <[EMAIL PROTECTED]>
To: "'Octavian Rasnita'"
IIS thinks the CWD is the root directory of the script alias. Just set
up a script alias that points to the directory where the cgi actually is
and you'll be fine.
Peter Kappus wrote:
Hey all,
Anyone move scripts between IIS and Apache or need to write scripts that
work on both? The problem I
Christopher G Tantalo wrote:
Hello,
In a recent perl script I wrote, I have a procedure, read_config(),
which reads a
config file I have set up and sets a hash to what is in the file. Now,
before you
mention it, I have stricts on and use the -w on the 1st line, and the
following
message appe
Octavian Rasnita wrote:
I guess it is a Perl 5.8 bug because this didn't happen in Perl 5.6.1.
Or, ... it might be a DBI module error, but I don't think so.
Not sure if it is a DBI error or not, but I *believe* (read: have some
remembrance of it but not sure) that it has been discussed somewhat
20 matches
Mail list logo