Hi all, I am playing with an upload script I got off this list a week or so ago... it has this line... : $TempFile::TMPDIRECTORY='C:/Inetpub/wwwroot'; I want...
2715
Franki
frankieh@...
Apr 2, 2001 11:27 am
sok, got it sussed, just removed the '' from around the variable. Works now. thanks all. Frank Hauptle ... --/ /__/ / _ \/ // /\ \/ / -/____/_/_//_/\_,_/...
2716
Greg
webmaster@...
Apr 2, 2001 11:57 am
... You are not making allowance for end of line character. Try: while (<IN>){ #read a line from file IN into $_ $newvar = "$_"; chomp...
2717
Franki
frankieh@...
Apr 2, 2001 12:19 pm
Hi all, I have a question that is alot more relivent then most of mine :-) I have two scripts, one generates lots of html forms.. (called man.cgi) in one of...
2718
Eric Thibodeau
rd_lab@...
Apr 2, 2001 1:36 pm
[-=*Smashes Head on keyboard*=-] [*Grin*] Uhm, the reason I switched to sprintf was following your recomendation since the concatenation screwzz up! When...
2719
Christopher L. Severson
cseverson@...
Apr 2, 2001 2:38 pm
Everyone, I am writing a program that goes out to my PDC, gets a list of all NT workstations, puts that list into an array, and then, by machine, deletes the...
2720
Damien Carbery
daymobrew@...
Apr 2, 2001 5:17 pm
... This might be close to what will work. I was doing some glob and <> experiments at the weekend and found that glob() worked better for me (can't remember...
2721
Doug Wells
dougawells@...
Apr 2, 2001 6:02 pm
You should be able to access the environmental variable HTTP_REFERER in the ENV hash. $ENV{'HTTP_REFERER'} Good luck Doug ... ...
2722
Franki
frankieh@...
Apr 2, 2001 6:09 pm
yeah, I tried that, but because the script is printing a form with a onClick="window.open('ect ect') that opens the second script in the popup window, the...
2723
Damien Carbery
daymobrew@...
Apr 2, 2001 6:19 pm
How about some Javascript... something like the following in the code for the pop(ed) up window: if ( document.referer != "http://www...." ) self.close();...
2724
Mike Payne
theseus@...
Apr 2, 2001 6:26 pm
If someone really wanted to bypass it, they could just turn javascript off, especially considering the fact that unless the window was opened by a javascript...
2725
Franki
frankieh@...
Apr 2, 2001 6:28 pm
yeah, I thought about that too, but basically, its to stop an upload script from being accessed from anyone not doing so through the other perl script, because...
2726
Franki
frankieh@...
Apr 2, 2001 6:31 pm
yup, thats exactly why I caned that idea. I want it so that if the user tries to log directly into the child script, it checks to see where the user came from,...
2727
Chanda Adams
adams@...
Apr 2, 2001 6:55 pm
is there a command that will simply add the date to a cgi script that will be emailed? I know it's on the email, but in the form would be handy. Thanks! ...
2728
shawn.poulson@...
Apr 2, 2001 7:22 pm
Hello all, I'm using Activestate Perl 5.005 in a Win2k server system. I'm trying to implement some simple network functions using socket/connect/etc. I want...
2729
Damien Carbery
daymobrew@...
Apr 2, 2001 8:21 pm
Like the error says, alarm() is not implemented in ActiveState's port. Their "Quirks" page says: "There are several functions that are unimplemented in the...
2730
byron wise
bywise@...
Apr 2, 2001 8:25 pm
Try this: localtime(time); ... _________________________________________________________________ Get your FREE download of MSN Explorer at...
Damien Carbery <daymobrew@...> ... localtime is already set up for a default date and time string: print scalar localtime; or: my $date = localtime; ...
2733
sxj0779@...
Apr 2, 2001 9:10 pm
How i can pass a scalar variable to a subroutine. print "Input file name:"; chomp($infilename = <stdin>); print "Output file name:"; chomp($outfilename =...
2734
Damien Carbery
daymobrew@...
Apr 2, 2001 9:28 pm
sub comma { my $OutputFileName = shift; print "In comma function: $OutputFileName\n"; } Call with: comma( $outfilename ); You don't need the '&' before 'comma'...
2735
Christopher L. Severson
cseverson@...
Apr 2, 2001 9:29 pm
Everyone, Sorry for the what seems like constant questions - I am starting to get frustrated around this. I am writing a program that gets a list of all NT...
2736
Nate Long
hybernate20@...
Apr 2, 2001 9:38 pm
I know this may sound REALLY stupid, but.....i had started perl awhile ago and it kinda hard for me and i gave up(probably because of the tutorial i was using)...
2737
Charles K. Clarkson
c_clarkson@...
Apr 2, 2001 9:38 pm
... There are lots of perl xml modules. You might want to check at xml.com. XML::Parser comes with the standard perl distribution. HTH, Charles K. Clarkson...
2738
Charles K. Clarkson
c_clarkson@...
Apr 2, 2001 10:23 pm
... Sure! Leave out the select_mixture sub . . . I remember reading about a module called IO::HairOfTheDogThatBitMe Maybe we can search CPAN . . . Charles K....
2739
Mike Payne
theseus@...
Apr 2, 2001 10:39 pm
Learning Perl, by O'Reilly and Associates. -Mike ... From: Nate Long [mailto:hybernate20@...] Sent: Monday, April 02, 2001 5:37 PM To:...
2740
Damien Carbery
daymobrew@...
Apr 2, 2001 11:02 pm
Try entering: \\hak-comproom\D$\Temp in the Start/Run dialog. It should open an Explorer directory window. Of course you may not have the rights to access that...
2741
JHILMIL JAIN
jhilmilj@...
Apr 3, 2001 12:25 am
Hi all, I want to install XML::Parser in the tree in the tree style. I am unable to do so. When I do-----> gzip -d XML-Parser-EasyTree-0_01_tar.gz I get...
2742
Christopher L. Severson
cseverson@...
Apr 3, 2001 2:20 am
I have full access to the computer - I am a Domain Admin - if I were to click Start,Run, and type that in, it will pull up a box of that directory and show me...
2743
Jhilmil Jain
jhilmilj@...
Apr 3, 2001 4:26 am
Hi, I am learning Perl. I need help to parse this data structure. My guess is that it is an array of hashes. But I cant understand how to extract the key and...