Re: $ENV{'HTTP_REFERER'}

2001-11-16 Thread Rodney Wines
> Unfortunately no...this is one of the things where it is worth checking, but > not a guarantee by any means. Some sites even block referrers at their firewall or proxy server. In general, if you're doing a site for a group of users whose environment you know, then you might be able to make use

Re: searching for similar keys in a hash

2001-11-07 Thread Rodney Wines
> Does anyone now if there is a way to find keys in a hash which are similar? There is no implied organization whatsoever in a hash. Hashes don't know "similar". The only thing you can do to find similar keys is "each %hash" and match each key against your favorite regex for "similar". Another

Re: Testing file existence

2001-09-05 Thread Rodney Wines
The same assumption applies to "-e" ... :-) - Original Message - From: "Dirk Bremer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 4:19 PM Subject: Re: Testing file existence > > > > @result_files = `dir f:\\wm_ites\\ite8\\\*\.cat \/s \/b`; > > > > fore

Re: Testing file existence

2001-09-05 Thread Rodney Wines
> > @result_files = `dir f:\\wm_ites\\ite8\\\*\.cat \/s \/b`; > > foreach $file (@result_files){ > > $file_vob = $file; > > if (-e chop($file_vob) ){ Am I missing something here? He's capturing the output of "dir". So, if the file is in the directory, doesn't that mean it exists

Re: Speaking of dates, how about converting a COBOL date?...

2001-08-16 Thread Rodney Wines
> I have a date field that I need to convert; It comes through as the number > of days since 1/1/1800... How many days are there between 1/1/1800 and 1/1/1970? Work that out once and use it as a constant. Then, subtract that number from your COBOL date, and multiply the result by 60*60*24, and y

Re: http post problem

2001-08-01 Thread Rodney Wines
You might get more help from the friendly folks over at the lwp mailing list. The list address is [EMAIL PROTECTED] I don't remember how to subscribe, but I'd bet you can find that on perl.org. Rodney - Original Message - From: "ben goswami" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

Re: PERL Inerpreter Path -- PLEASE HELP!!

2001-07-17 Thread Rodney Wines
> Geeze, a little harsh there aren't you, ... No, just honest. If you'd spent a New Years Day (after being up all of New Years Night) trying to figure out why a web page was displaying "19100", perhaps you'd feel less charitable towards Matt. My friend whose site was used to distribute penis en

Re: PERL Inerpreter Path -- PLEASE HELP!!

2001-07-17 Thread Rodney Wines
> I installed ActivePerl on our server, and I am running > formmail.pl from Matt's Script Archive. RUN AWAY!!! This is a horrible tool to use, especially if you're accessible from the Internet. I think Matt is one of the few people to rate his own CERT advisory (I believe there's a CERT advisor

Re: How to read a single line from file

2001-06-04 Thread Rodney Wines
> > From: [EMAIL PROTECTED] > > open (IN, "a.txt") ; > > while () { > > chomp ($line = <>); > > # $line contains line from a.txt > > No $line contains a line from a file whose name is in @ARGV or from > STDIN. You wanted > $line = > !!! No ... :-) The "while()" reads a line into $_. S