[17282] in Perl-Users-Digest
Perl-Users Digest, Issue: 4704 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Oct 23 21:05:35 2000
Date: Mon, 23 Oct 2000 18:05:15 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <972349514-v9-i4704@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Mon, 23 Oct 2000 Volume: 9 Number: 4704
Today's topics:
Re: [perl history] Where does &sub come from? <elaine@chaos.wustl.edu>
Re: Alphanumeric sorting of hashes <lincmad001@telecom-digest.zzn.com>
Re: Alphanumeric sorting of hashes <abe@ztreet.demon.nl>
Re: Can someone help <jihad.battikha@sharewire.com>
Check user's registry? epimp@my-deja.com
Re: Check user's registry? <xzrgpnys@yvtugubhfrovm.pbz>
Re: Examples of GD::Graph3d (Martien Verbruggen)
Re: File locking <mikecook@cigarpool.com>
Re: File test -d does not work under Win98 ? <friedman@math.utexas.edu>
Re: File test -d does not work under Win98 ? (Martien Verbruggen)
Invalid switch msg on system call <scheideg@mars.entic.net>
Re: Legal email addresses... <themoriman@ntlworld.com>
Re: Legal email addresses... <nihad@yahoo.com>
Re: Multiple substitution <hartleh1@westat.com>
newbie : Installing Danise shopping cart <me@you.com>
Re: newbie : Installing Danise shopping cart <elephant@squirrelgroup.com>
Re: On being Schwartz.. (was Re: newbie cgi examples) (Charles DeRykus)
Re: Perl 5.005 or 5.6? (Logan Shaw)
Re: Perl outputs to dos instead of ie5 browser <godzilla@stomp.stomp.tokyo>
Re: Perl outputs to dos instead of ie5 browser <jeff@vpservices.com>
Re: Perl outputs to dos instead of ie5 browser <godzilla@stomp.stomp.tokyo>
Re: Perl outputs to dos instead of ie5 browser <jihad.battikha@sharewire.com>
Re: Perl outputs to dos instead of ie5 browser <godzilla@stomp.stomp.tokyo>
Re: programming (Martien Verbruggen)
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 24 Oct 2000 00:26:41 GMT
From: Elaine Ashton <elaine@chaos.wustl.edu>
Subject: Re: [perl history] Where does &sub come from?
Message-Id: <B61A4F86.8105%elaine@chaos.wustl.edu>
in article 874s24h6to.fsf@triton.local.net, Pascal J. Bourguignon at
pjb@imaginet.fr quoth:
> Why the '&' character has been choosen to mark subroutine calls?
> Does it come from another older language?
The '&' was introduced with Perl3 and was to replace 'do' to call
subroutines. The ampersand was made optional with the advent of Perl5. As
far as why it was chosen I would guess that all the other punctuation was
taken at the time and '&' fit in nicely. As far as I know, this wasn't
borrowed from any other language, rather it evolved from the language as it
grew.
e.
------------------------------
Date: Mon, 23 Oct 2000 16:34:36 -0700
From: Linc Madison <lincmad001@telecom-digest.zzn.com>
Subject: Re: Alphanumeric sorting of hashes
Message-Id: <231020001634364108%lincmad001@telecom-digest.zzn.com>
In article <m3u2a38qc8.fsf@dhcp11-177.support.tivoli.com>, Ren Maddox
<ren.maddox@tivoli.com> wrote:
> In either case, if you have very much data to sort, you might want to
> convert this to a ST or GRT, but I have a hunch that you aren't
> dealing with that much data...
What are ST and GRT?
I can't look them up if I don't know what the abbreviations are for....
(I'm interested because I have a program that uses a hash with over
120,000 pairs, and I have to sort on the keys.)
------------------------------
Date: Tue, 24 Oct 2000 01:57:54 +0200
From: Abe Timmerman <abe@ztreet.demon.nl>
Subject: Re: Alphanumeric sorting of hashes
Message-Id: <fjj9vsomiqs6sdf2unv0e392jh9j6irq0r@4ax.com>
On Mon, 23 Oct 2000 16:34:36 -0700, Linc Madison
<lincmad001@telecom-digest.zzn.com> wrote:
> In article <m3u2a38qc8.fsf@dhcp11-177.support.tivoli.com>, Ren Maddox
> <ren.maddox@tivoli.com> wrote:
>
> > In either case, if you have very much data to sort, you might want to
> > convert this to a ST or GRT, but I have a hunch that you aren't
> > dealing with that much data...
>
> What are ST and GRT?
ST => Schwartz Transform
http://www.perl.com/CPAN-local/doc/FMTEYEWTK/sort.html
GRT => Guttman Rosler Transform
http://www.hpl.hp.com/personal/Larry_Rosler/sort/sorting.html
--
Good luck,
Abe
##
perl -Mstrict -wle 'sub Just{&$_}sub another{&$_}sub Perl{&$_}sub hacker{&$_}$_=sub{(split /::/,(caller $^W)[3])[-$^W].$"};print@{[Just,another,Perl,hacker]}'
------------------------------
Date: Mon, 23 Oct 2000 18:07:29 -0400
From: Jihad Battikha <jihad.battikha@sharewire.com>
Subject: Re: Can someone help
Message-Id: <39F4B6A1.B27B19FE@sharewire.com>
s_punk@my-deja.com wrote:
> version</FONT></B></TD><TD ALIGN=left><FONT FACE="Helvetica">4.5.1
> 10/04/1999 13:37:30 #53733 - 128 bit domestic version</FONT></TD></TR>
> <TR><TD VALIGN=top><B><FONT
> FACE="Helvetica">Launched</FONT></B></TD><TD ALIGN=left><FONT
> FACE="Helvetica">Fri Oct 13 18:45:09 CDT 2000</FONT></TD></TR>
> <TR><TD VALIGN=top><B><FONT FACE="Helvetica">Uptime</FONT></B></TD><TD
> ALIGN=left><FONT FACE="Helvetica">9d 21:44:34</FONT></TD></TR>
> ....
> > > ($nrt =~ m@version<.*>(\d[^<]*) # version
> > > .*Launched<.*>([^<]*) # Launched
> > > .*Uptime<.*>(\d[^<]*) # uptime
> > > @x);
Your regexp is probably too greedy. Try:
$nrt =~ s/\s+/ /g;
if ($nrt =~
/version(?:<[^>]*>\s*)*([^<]+)(?:<[^>]*>\s*)*Launched(?:<[^>]*>\s*)*([^<]+)(?:<[^>]*>\s*)*Uptime(?:<[^>]*>\s*)*([^<]+)/)
{
($ver, $launched, $uptime) = ($1, $2, $3);
} else {
# result came back in an unexpected form
}
A bit longer but more explicit...
--
Jihad Battikha <jihad.battikha@sharewire.com>
Sharewire, Inc. --- http://www.sharewire.com/
- Free forms, programs, and content for web sites.
- No assembly required.
Disclaimer:
Before sending me commercial e-mail, the sender must first agree
to my LEGAL NOTICE located at: http://www.highsynth.com/sig.html
------------------------------
Date: Mon, 23 Oct 2000 22:01:39 GMT
From: epimp@my-deja.com
Subject: Check user's registry?
Message-Id: <8t2cg0$ofo$1@nnrp1.deja.com>
Using Perl/CGI in a web application, is it possible to check the
registry keys on the user's PC (95/98/NT) when the user clicks a button
to initiate a download? We're trying to check if a certain
installation file is already on their machine?
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 23 Oct 2000 23:26:12 GMT
From: kevin metcalf <xzrgpnys@yvtugubhfrovm.pbz>
Subject: Re: Check user's registry?
Message-Id: <39F4C995.67397AAF@yvtugubhfrovm.pbz>
epimp@my-deja.com wrote:
>
> Using Perl/CGI in a web application, is it possible to check the
> registry keys on the user's PC (95/98/NT) when the user clicks a button
> to initiate a download? We're trying to check if a certain
> installation file is already on their machine?
Well, Big Brother,
As far as I have ever heard, NO. This goes against everthing that I
think most people want out of the net. Privacy. In short, a perl
script (CGI) is executing on the server, unlike other scripting
languages that get run on the client machine. The only way to do this
is to ask the browser for some info it might have, but (to my knowledge)
no browser ever is evil enough to start sending registry info back to
the server. (Except maybe IE on a PIII ;)
Kevin
--
email: xzrgpnys@yvtugubhfrovm.pbz
Huh? http://www.flactem.com/utils/rot13.html
------------------------------
Date: Mon, 23 Oct 2000 22:15:01 GMT
From: mgjv@tradingpost.com.au (Martien Verbruggen)
Subject: Re: Examples of GD::Graph3d
Message-Id: <slrn8v9e32.a0g.mgjv@verbruggen.comdyn.com.au>
On Mon, 23 Oct 2000 13:54:16 +0200,
Maciej Gabryelski <m.gabryelski@psi-net.pl> wrote:
> Hi there.
Please, if you must post to two groups, at least use the crossposting
facility of Usenet. See my answer to this same post in clp.modules.
Martien
--
Martien Verbruggen |
Interactive Media Division | I'm just very selective about what I
Commercial Dynamics Pty. Ltd. | accept as reality - Calvin
NSW, Australia |
------------------------------
Date: Mon, 23 Oct 2000 17:19:11 -0700
From: "Michael Cook" <mikecook@cigarpool.com>
Subject: Re: File locking
Message-Id: <fC4J5.3442$xL1.391670@news.uswest.net>
I have read it most carefully - you have given *how* to flush. What if you
are writing to more than 1 file with the same script? Should you flush for
each? Or is 1 flush at the beginning of the script sufficient?
Michael
--
== CigarPool ==
http://www.cigarpool.com
"Mark-Jason Dominus" <mjd@plover.com> wrote in message
news:39f45e19.6ba8$1a6@news.op.net...
> In article <_4QI5.2683$ud.614505@news.uswest.net>,
> Michael Cook <mikecook@cigarpool.com> wrote:
> >I find that section incomplete - it does not state what to do for FH
> >flushing in the case of opening more than 1 file in the same script.
>
> That is not true. It shows for example:
>
> $file->autoflush(1);
> flock(FH, LOCK_UN);
>
> Also, elsewhere in the same chapter is an extensive discussion of
> flushing issues.
------------------------------
Date: Mon, 23 Oct 2000 19:17:32 -0500
From: Chas Friedman <friedman@math.utexas.edu>
Subject: Re: File test -d does not work under Win98 ?
Message-Id: <39F4D51B.6D1C8AD9@math.utexas.edu>
Hmmm... curious! I tried it with my perl on Windows, with the same result, and
the same result occurs on a Linux system. I tried writing the code a bit
differently, e.g.
opendir(DIR, "d:/perl") or die $!;
for (readdir DIR){
if (-d $_ ) {print; print " ";} #guess I don't need the $_
}
closedir(DIR) or die $!;
and the same thing happens (directories other than . or .. are ignored.)
However, if I try
if (-d "../somedir") {print "OK\n"}
then "OK" is printed for listings which are directories. (on Windows or Linux).
(If you figure this out, I'd like to know. I use perl some, but I'm no expert.)
chas friedman
arie van wingerden wrote:
> Hi,
>
> I'm using'the O'Reilly Perl Resource Kit for Windows, installed under Win98
> (first edtion).
> If I am using the following code:
> opendir(DIR, $dir) or die $!;
> @dirs = grep(-d, readdir(DIR));
> closedir(DIR) or die $!;
> where $dir is a correct full directory path, which contains several subdirs.
> If I print @dirs only the . and .. directories show up - the others are
> ignored.
> Does someone recognize this?
>
> Thanx so far
> Arie van Wingerden
------------------------------
Date: Tue, 24 Oct 2000 00:35:40 GMT
From: mgjv@tradingpost.com.au (Martien Verbruggen)
Subject: Re: File test -d does not work under Win98 ?
Message-Id: <slrn8v9mao.a0g.mgjv@verbruggen.comdyn.com.au>
[Please, in the future, post your reply _after_ the suitably trimmed
text you reply to. This makes the messages easier to read, and is in
conformance with the posting conventions on this newsgroup, and Usenet
in general]
On Mon, 23 Oct 2000 19:17:32 -0500,
Chas Friedman <friedman@math.utexas.edu> wrote:
[reorganised and rewrapped post]
> arie van wingerden wrote:
> >
> > If I am using the following code:
> > opendir(DIR, $dir) or die $!;
> > @dirs = grep(-d, readdir(DIR));
> > closedir(DIR) or die $!;
> > where $dir is a correct full directory path, which contains
> > several subdirs. If I print @dirs only the . and .. directories
> > show up - the others are ignored.
>
> Hmmm... curious! I tried it with my perl on Windows, with the same
> result, and the same result occurs on a Linux system. I tried
> writing the code a bit differently, e.g.
>
> opendir(DIR, "d:/perl") or die $!;
> for (readdir DIR){
> if (-d $_ ) {print; print " ";} #guess I don't need the $_
> }
> closedir(DIR) or die $!;
Both of you probably should read the documentation on readdir, which
states
# perldoc -f readdir
[snip]
If you're planning to filetest the return values
out of a `readdir', you'd better prepend the
directory in question. Otherwise, because we
didn't `chdir' there, it would have been testing
the wrong file.
[snip]
So, use something like
opendir(DIR, $dir) or die $!;
my @dirs = grep { -d "$dir/$_" } readdir DIR;
closedir DIR;
Martien
--
Martien Verbruggen |
Interactive Media Division | Begin at the beginning and go on till
Commercial Dynamics Pty. Ltd. | you come to the end; then stop.
NSW, Australia |
------------------------------
Date: 23 Oct 2000 23:34:31 GMT
From: Kent Scheidegger <scheideg@mars.entic.net>
Subject: Invalid switch msg on system call
Message-Id: <8t2hu7$2qfb$1@nntp1.ba.best.com>
I'm running perl on a Win98 machine. Every time I make a system=20
call, I get a message=8F"Invalid switch". This happens even with=20
a simple call like this:
system ("dir");
The command works, but I get this annoying message.
Apparently something in my perl setup is passing an invalid switch
when it invokes the shell. How can I find out what it's doing wrong
and fix it?
Thanks for any info.
------------------------------
Date: Mon, 23 Oct 2000 23:12:01 +0100
From: "The Moriman" <themoriman@ntlworld.com>
Subject: Re: Legal email addresses...
Message-Id: <fI2J5.9527$bL1.194202@news6-win.server.ntlworld.com>
Jan Schaumann <jschauma@netmeister.org> wrote in message
news:1y1J5.5401$TC6.215798@news-east.usenetserver.com...
>
> If you are not trusting scripts psoted on CPAN, how can you trust the
> advise of a bunch of total strangers (most likely compelte idiots that
> don't know much more than yoj do) from usenet?
Fair point :-)
My reckoning usually is that if I ask enough *complete idiots* then a
half-wit such as myself should be able to glean enough common *knowledge* to
do what they are trying ;-)
2 smileys and thanks for your input
Much appreciated
TMMan
------------------------------
Date: Mon, 23 Oct 2000 22:30:04 -0000
From: <nihad@yahoo.com>
Subject: Re: Legal email addresses...
Message-Id: <sv9evc26hi5id6@corp.supernews.com>
Try this, it works for me on all scripts that I want to validate the email
address.
$the_value = $email_address;
if ($the_value =~
m/^[\w_\.\,\+\*\'\-\#\!&\?\\\$%]+\@[\w\.\-]{2,}\.([a-z]{2,4})$/i) {
my($suffix) = "\U$1\E";
if (defined $validDomains{$suffix}) { # a valid domain suffix
if ($the_value !~ m/\.\./io) { # no two dots in a row
my($before, $after) = split(/\@/, $the_value);
if ($before =~ m/[A-Za-z1-9]/io) {
print "Good Email Address";
}
}
}
}else{
print "Invalid email address.";
}
%validDomains = (
'AD' => 1,
'AE' => 1,
'AF' => 1,
'AG' => 1,
'AI' => 1,
'AL' => 1,
'AM' => 1,
'AN' => 1,
'AO' => 1,
'AQ' => 1,
'AR' => 1,
'AS' => 1,
'AT' => 1,
'AU' => 1,
'AW' => 1,
'AZ' => 1,
'BA' => 1,
'BB' => 1,
'BD' => 1,
'BE' => 1,
'BF' => 1,
'BG' => 1,
'BH' => 1,
'BI' => 1,
'BJ' => 1,
'BM' => 1,
'BN' => 1,
'BO' => 1,
'BR' => 1,
'BS' => 1,
'BT' => 1,
'BV' => 1,
'BW' => 1,
'BY' => 1,
'BZ' => 1,
'CA' => 1,
'CC' => 1,
'CF' => 1,
'CG' => 1,
'CH' => 1,
'CI' => 1,
'CK' => 1,
'CL' => 1,
'CM' => 1,
'CN' => 1,
'CO' => 1,
'CR' => 1,
'CS' => 1,
'CU' => 1,
'CV' => 1,
'CX' => 1,
'CY' => 1,
'CZ' => 1,
'DE' => 1,
'DJ' => 1,
'DK' => 1,
'DM' => 1,
'DO' => 1,
'DZ' => 1,
'EC' => 1,
'EE' => 1,
'EG' => 1,
'EH' => 1,
'ER' => 1,
'ES' => 1,
'ET' => 1,
'FI' => 1,
'FJ' => 1,
'FK' => 1,
'FM' => 1,
'FO' => 1,
'FR' => 1,
'FX' => 1,
'GA' => 1,
'GB' => 1,
'GD' => 1,
'GE' => 1,
'GF' => 1,
'GH' => 1,
'GI' => 1,
'GL' => 1,
'GM' => 1,
'GN' => 1,
'GP' => 1,
'GQ' => 1,
'GR' => 1,
'GS' => 1,
'GT' => 1,
'GU' => 1,
'GW' => 1,
'GY' => 1,
'HK' => 1,
'HM' => 1,
'HN' => 1,
'HR' => 1,
'HT' => 1,
'HU' => 1,
'ID' => 1,
'IE' => 1,
'IL' => 1,
'IN' => 1,
'IO' => 1,
'IQ' => 1,
'IR' => 1,
'IS' => 1,
'IT' => 1,
'JM' => 1,
'JO' => 1,
'JP' => 1,
'KE' => 1,
'KG' => 1,
'KH' => 1,
'KI' => 1,
'KM' => 1,
'KN' => 1,
'KP' => 1,
'KR' => 1,
'KW' => 1,
'KY' => 1,
'KZ' => 1,
'LA' => 1,
'LB' => 1,
'LC' => 1,
'LI' => 1,
'LK' => 1,
'LR' => 1,
'LS' => 1,
'LT' => 1,
'LU' => 1,
'LV' => 1,
'LY' => 1,
'MA' => 1,
'MC' => 1,
'MD' => 1,
'MG' => 1,
'MH' => 1,
'MK' => 1,
'ML' => 1,
'MM' => 1,
'MN' => 1,
'MO' => 1,
'MP' => 1,
'MQ' => 1,
'MR' => 1,
'MS' => 1,
'MT' => 1,
'MU' => 1,
'MV' => 1,
'MW' => 1,
'MX' => 1,
'MY' => 1,
'MZ' => 1,
'NA' => 1,
'NC' => 1,
'NE' => 1,
'NF' => 1,
'NG' => 1,
'NI' => 1,
'NL' => 1,
'NO' => 1,
'NP' => 1,
'NR' => 1,
'NT' => 1,
'NU' => 1,
'NZ' => 1,
'OM' => 1,
'PA' => 1,
'PE' => 1,
'PF' => 1,
'PG' => 1,
'PH' => 1,
'PK' => 1,
'PL' => 1,
'PM' => 1,
'PN' => 1,
'PR' => 1,
'PT' => 1,
'PW' => 1,
'PY' => 1,
'QA' => 1,
'RE' => 1,
'RO' => 1,
'RU' => 1,
'RW' => 1,
'SA' => 1,
'Sb' => 1,
'SC' => 1,
'SD' => 1,
'SE' => 1,
'SG' => 1,
'SH' => 1,
'SI' => 1,
'SJ' => 1,
'SK' => 1,
'SL' => 1,
'SM' => 1,
'SN' => 1,
'SO' => 1,
'SR' => 1,
'ST' => 1,
'SU' => 1,
'SV' => 1,
'SY' => 1,
'SZ' => 1,
'TC' => 1,
'TD' => 1,
'TF' => 1,
'TG' => 1,
'TH' => 1,
'TJ' => 1,
'TK' => 1,
'TM' => 1,
'TN' => 1,
'TO' => 1,
'TP' => 1,
'TR' => 1,
'TT' => 1,
'TV' => 1,
'TW' => 1,
'TZ' => 1,
'UA' => 1,
'UG' => 1,
'UK' => 1,
'UM' => 1,
'US' => 1,
'UY' => 1,
'UZ' => 1,
'VA' => 1,
'VC' => 1,
'VE' => 1,
'VG' => 1,
'VI' => 1,
'VN' => 1,
'VU' => 1,
'WF' => 1,
'WS' => 1,
'YE' => 1,
'YT' => 1,
'YU' => 1,
'ZA' => 1,
'ZM' => 1,
'ZR' => 1,
'ZW' => 1,
'COM' => 1,
'EDU' => 1,
'GOV' => 1,
'INT' => 1,
'MIL' => 1,
'NET' => 1,
'ORG' => 1,
'ARPA' => 1,
'NATO' => 1
);
The Moriman wrote:
>
>
> Hi,
>
> Can anyone give me (or point me to) a definitive list of illegal
characters
> for email addresses. As far as I have been able to find out through
> searches, almost anything is allowed before the "@", but is there a list
of
> what _shouldn't_ come after it?
> I'm trying to write a part for my script, that when checking the email
> address, ensures that it _is_ an address and not a command.
>
> TIA
>
> TMMan
>
>
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
Date: Mon, 23 Oct 2000 17:20:03 -0400
From: Henry Hartley <hartleh1@westat.com>
Subject: Re: Multiple substitution
Message-Id: <39F4AB82.789BFCCA@westat.com>
Billy wrote:
>
> Hello !
>
> I've got a newbie question :
>
> I've got files in which names with multiple spaces, and I want to
> change those spaces to %20. But with s/\s /%20/ It just change
> the first space. How can I write it ?
perldoc -q encodings
How do I decode or create those %-encodings on the web?
Also, see the module URI::Escape on CPAN.
--
Henry Hartley
------------------------------
Date: Tue, 24 Oct 2000 01:08:50 +0100
From: Landore <me@you.com>
Subject: newbie : Installing Danise shopping cart
Message-Id: <rfk9vs4d8moj1qqkrbfft8421jtlr4bt49@4ax.com>
Hello,
Im trying to install denise shopping cart, being more of a graphics
design background im pretty new to perl/cgi. I have done everything in
the readme that should be done but I dont understand why when I test
the script it does'nt respond. I checked the error logs and found it
says
Premature end of script headers: /www/cgi-bin/cart.pl
anyone know what this means and how I can fix it
Im sure all my paths are correct in the vars.dat file
hope someone can help with my question
TIA
Landore
------------------------------
Date: Tue, 24 Oct 2000 11:47:36 +1000
From: jason <elephant@squirrelgroup.com>
Subject: Re: newbie : Installing Danise shopping cart
Message-Id: <MPG.145f9543bc0d3ace98983d@localhost>
Landore wrote ..
>Im trying to install denise shopping cart, being more of a graphics
>design background im pretty new to perl/cgi. I have done everything in
>the readme that should be done but I dont understand why when I test
>the script it does'nt respond. I checked the error logs and found it
>says
> Premature end of script headers: /www/cgi-bin/cart.pl
>
>anyone know what this means and how I can fix it
>Im sure all my paths are correct in the vars.dat file
contact whomever you received this script from and request that they
provide you with support
this is not a support forum for every Tom, Dick and Denise who writes a
crappy program
--
jason -- elephant@squirrelgroup.com --
------------------------------
Date: Mon, 23 Oct 2000 20:57:26 GMT
From: ced@bcstec.ca.boeing.com (Charles DeRykus)
Subject: Re: On being Schwartz.. (was Re: newbie cgi examples)
Message-Id: <G2wI7q.C0D@news.boeing.com>
Keywords: troll, trool, troll
In article <8t238q$a90$1@sloth.swcp.com>, Tramm Hudson <hudson@swcp.com> wrote:
>joe mc cool <joe@benburb.demon.co.uk> wrote:
>> You want to see the spelling I get for _my_ name some times !
>
>How do people mispeel "Joe"? Or do you mean McCool? Neither
>seems very challenging or out of the ordinary.
>
probably the same synapse that does "mispeel"
instead of misspell :)
--
Charles DeRykus
------------------------------
Date: 23 Oct 2000 19:49:48 -0500
From: logan@cs.utexas.edu (Logan Shaw)
Subject: Re: Perl 5.005 or 5.6?
Message-Id: <8t2mbc$1fk$1@provolone.cs.utexas.edu>
In article <8t28lf$607$1@charm.magnus.acs.ohio-state.edu>,
Ilya Zakharevich <ilya@math.ohio-state.edu> wrote:
>With the current scheme of name-resolution-at-run-time it will never
>be perfect. This scheme works for toy examples only (unless you use
>unique prefixes for applications, and this is also not bullet-proof
>due to the same "uniqueness is hard" example of yours).
O.K., I now see that we weren't talking about exactly the same things.
You're talking about the names of symbols in the libraries; I was
talking about the names of the libraries.
Anyway, I have learned something about the way Windows links libraries,
so I'm going to call this discussion positive for me at least. I'm not
convinced that the way Windows does it is universally better. I think
it's a trade-off, personally. But, it does have advantages.
- Logan
------------------------------
Date: Mon, 23 Oct 2000 15:07:28 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: Perl outputs to dos instead of ie5 browser
Message-Id: <39F4B6A0.40A8207C@stomp.stomp.tokyo>
Michael Frost wrote:
> With ActivePerl installed in 20 secs, and another 20 secs for the amazing
> (763kb!!) Xitami WebServer, I got the perfect suite installed for Perl-cgi
> development in a win32 environment. Everything works cool with STDOUT going
> to my browser: Hello, World!
> I say ActiveXitami for everyone ;)
> Sorry Godzilla, I just got happy that I got my problem worked out this
> quick.
* laughs *
You are such an easy mark.
Godzilla!
------------------------------
Date: Mon, 23 Oct 2000 15:11:11 -0700
From: Jeff Zucker <jeff@vpservices.com>
Subject: Re: Perl outputs to dos instead of ie5 browser
Message-Id: <39F4B77F.F25D267D@vpservices.com>
joe mc cool wrote:
>
> Jeff Zucker <jeff@vpservices.com> writes:
>
> > > It's becoming clear to me that a local server setup is needed for getting
> > > output to a browser.
> >
> > Yep. (Well, mostly. You could dump the output of the CGI to a file and
> > view that in the browser, but that's not the same thing)
>
> Let me get this correct:
>
> perl some.cgi.script > some.cgi.html
>
> then view the html from say, Netscape Navigator. Am I correct ?
Yes. For example if this is test.cgi
#!/usr/local/bin/perl -Tw
$|++;
use strict;
use CGI qw(:standard);
print start_html('test'),
param('first_name'), ' ',
param('last_name'),
end_html
;
And you type this at the command line:
perl -T test.cgi >test.html
You will see this prompt:
(offline mode: enter name=value pairs on standard input)
Then enter the data as if it were coming from a form like this to mimic
two text fields in a from with the names of the text fields being
first_name and last_name:
first_name=Fred (press enter)
last_name=Bloggs (press enter, press control-Z)
This file will be created and can be viewed from a browser:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>test</TITLE>
</HEAD><BODY>Fred Bloggs</BODY></HTML>
> Will this work even with forms ?
Yes, if you use CGI.pm and do not mind entering all the form data as
name=value pairs at the command prompt. (or you could get even more
laborious and save/restore the form data itself in another file using
CGI.pm's save/restore features).
> For testing (and learning) purposes, why is it not "the same thing" ?
> Even for small scripts ?
Well, it is harder to see what is going on if you have a series of forms
that feed into each other and there may be differences in enviornment
that a server imposes (e.g. different directory structures, user
permissions, etc.). Also, in the example above, I did not print a
content-header which would mean that the test.html file would display
correctly, but if run as an actual CGI script in a browser, you' need to
add "print header" before the other print statements in the script.
Sure, for small scripts, this will work, but it is so easy to install
apache or other local web servers that I'd almost always recommend doing
that. (and checking the script at the command line when needed).
--
Jeff
------------------------------
Date: Mon, 23 Oct 2000 15:14:49 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: Perl outputs to dos instead of ie5 browser
Message-Id: <39F4B859.4CC05BD5@stomp.stomp.tokyo>
Jihad Battikha wrote:
(Battikha has the same problem with no attributes)
Interesting, yes?
> Someone wrote:
> "Godzilla!" wrote:
> Maybe someone else wrote:
(snipped)
Why are you addressing me rather than the
original author? Got a thing for me?
Godzilla!
------------------------------
Date: Mon, 23 Oct 2000 18:36:24 -0400
From: Jihad Battikha <jihad.battikha@sharewire.com>
Subject: Re: Perl outputs to dos instead of ie5 browser
Message-Id: <39F4BD68.20F04B31@sharewire.com>
"Godzilla!" wrote:
> Jihad Battikha wrote:
>
> (Battikha has the same problem with no attributes)
Why are you addressing me by my last name and in the third person?
Rather rude... And what are you talking about, anyway? I atributed your
quotes at the top of my response and there was no need to repeat the
attribution because the source of the quoting didn't change. Is this
your first week on USENet?
> > Someone wrote:
> > "Godzilla!" wrote:
> > Maybe someone else wrote:
>
> (snipped)
>
> Why are you addressing me rather than the
> original author? Got a thing for me?
Because I was commenting on YOUR words which are slanted towards a bad
representation of the useability of Perl in a home/local/CGI testing
environent. I guess I mistakenly assumed you could think coherently.
My bad.
*PLONK*
--
Jihad Battikha <jihad.battikha@sharewire.com>
Sharewire, Inc. --- http://www.sharewire.com/
- Free forms, programs, and content for web sites.
- No assembly required.
Disclaimer:
Before sending me commercial e-mail, the sender must first agree
to my LEGAL NOTICE located at: http://www.highsynth.com/sig.html
------------------------------
Date: Mon, 23 Oct 2000 17:45:12 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: Perl outputs to dos instead of ie5 browser
Message-Id: <39F4DB98.4BFDCC52@stomp.stomp.tokyo>
Jihad Battikha wrote:
> "Godzilla!" wrote:
> > Jihad Battikha wrote:
> > (Battikha has the same problem with no attributes)
> Why are you addressing me by my last name and in the third person?
It causes me concern to address you in an active
first person voice and address you by your given
name, which is,
"Muslim Fanatic Holy War"
Many people would consider this name of yours
as a metaphor meaning "a terrorist". Muslim
terrorists, any nationality of terrorists, are
not high on my list of popular people. Fanatics
are a type of people whom raise my level of concern.
> Is this your first week on USENet?
As a matter-of-fact, this is my first week
using newsgroups. How did you know?
> *PLONK*
* grins *
Godzilla!
------------------------------
Date: Mon, 23 Oct 2000 22:16:45 GMT
From: mgjv@tradingpost.com.au (Martien Verbruggen)
Subject: Re: programming
Message-Id: <slrn8v9e69.a0g.mgjv@verbruggen.comdyn.com.au>
On 23 Oct 2000 19:59:40 +0100,
Jonathan Stowe <gellyfish@gellyfish.com> wrote:
> On Sat, 21 Oct 2000 00:01:42 +1100 Martien Verbruggen wrote:
> > On Fri, 20 Oct 2000 12:30:03 -0000,
> > p_devaki1@yahoo.com <p_devaki1@yahoo.com> wrote:
> >
> >> Posted via CNET Help.com
> >> http://www.help.com/
> >
> > aha. Time to update the score file.
> >
>
> Yep they've been in there in various guises since I first encountered it.
I had them, just commented out. Problem is, some people whose posts I
do like to read, for example Greg Bacon, also use the gateway that's
used by CNET help.com. So I commented it out again. It's back with
more tweaks now.
Martien
--
Martien Verbruggen |
Interactive Media Division | Begin at the beginning and go on till
Commercial Dynamics Pty. Ltd. | you come to the end; then stop.
NSW, Australia |
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 99)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V9 Issue 4704
**************************************