[13216] in Perl-Users-Digest
Perl-Users Digest, Issue: 626 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Aug 24 00:07:21 1999
Date: Mon, 23 Aug 1999 21:05:07 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Mon, 23 Aug 1999 Volume: 9 Number: 626
Today's topics:
Re: "Odd number of elements in hash list" (error messag (Martien Verbruggen)
Re: Bizarre inconsistency (elephant)
Re: Bizarre inconsistency <prfctbt@cris.com>
Re: Bizarre inconsistency (Eric Bohlman)
Re: Bizarre inconsistency (Martien Verbruggen)
Re: Bizarre inconsistency (Martien Verbruggen)
DST daylight saving period? <horaceho@geocities.com>
Re: email address verification (Martien Verbruggen)
Re: Is there a similar Perl command to C's gotoxy? <peter@berghold.net>
Re: LWP Legality Issue? <peter@berghold.net>
Re: matching tags in HTML <ahands@sprynet.com>
Re: Mulitple calls to the same perl script (Martien Verbruggen)
Re: Perl without C compiler. <peter@berghold.net>
POP is pooped! <webmaster@mendonet.com>
R: Running CGI scripts on my PC <nando@tetecma.com>
R: WinNT MD5|SHA Perl <nando@tetecma.com>
Re: Shamefully Funny Answer. <webmaster@mendonet.com>
Re: short question - short answer (Martien Verbruggen)
Re: Simple, dumb newbe question... how do I... <peter@berghold.net>
Re: someone pleae help (Martien Verbruggen)
Re: Split comp.lang.perl.misc (Martien Verbruggen)
Re: system() under Win32 <john@dlugosz.com>
Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 24 Aug 1999 02:50:14 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: "Odd number of elements in hash list" (error message)
Message-Id: <GLnw3.1909$X%3.10146@nsw.nnrp.telstra.net>
In article <7pskmt$ci3@dfw-ixnews6.ix.netcom.com>,
ebohlman@netcom.com (Eric Bohlman) writes:
> Your problem is almost certainly that one of the lines you're reading
> contains more than one equal sign.
or no equal sign.
> Check out the documentation for the split function (perldoc -f split) for
> a way to keep this from happening.
Well, if there is no equal sign, then split won't be able to provide a
way to stop this (you were talking about the third argument to split,
right?)
Martien
--
Martien Verbruggen |
Interactive Media Division | That's funny, that plane's dustin'
Commercial Dynamics Pty. Ltd. | crops where there ain't no crops.
NSW, Australia |
------------------------------
Date: Tue, 24 Aug 1999 12:06:45 +1000
From: elephant@squirrelgroup.com (elephant)
Subject: Re: Bizarre inconsistency
Message-Id: <MPG.122ca940eff5751f989c76@news-server>
Sam Holden writes ..
>On Mon, 23 Aug 1999 13:50:32 +0000, Perfect Beat <prfctbt@cris.com> wrote:
>>I have substitues other variable (including ones explicitly defined as
>>the value the my variable is assigned) and there is no problem. So I do
>>not think that this is a directory problem.
>
>Then the variable does not have the value you think it has.
>
>Do what was suggested and see what the error message is.
no way .. it's much better to guess .. ask the newsgroup .. waste other
people's time by ignoring the answer .. keep on guessing
QED
--
jason - elephant@squirrelgroup.com -
------------------------------
Date: Mon, 23 Aug 1999 19:27:34 +0000
From: Perfect Beat <prfctbt@cris.com>
Subject: Re: Bizarre inconsistency
Message-Id: <37C1A09F.8F974B4F@cris.com>
I do wish it were this simple. But regardless of whether I HAVE to
excape the period, escaping the period does not do harm as this works
with other variables which are also followed by the escaped period.
Therefore, the escaped period is not the source of the problem.
It also is not a problem with the directory structure or file locations
because, again, this works with other variables. I have also tested to
see whether the variable is merely a reference by dereferencing it, but
that does not work.
As far as the value of the variable, I have tested that too by a
print "$old_date_fields[0]";
statement which, indeed produces that value that I expect (and which I
have tested by actually using inplace of the variable as well as
directly assigning to a different variable that I used in its place).
The following peculiar phenomenon might shed a clue:
The program also freezes if I merely assign the value of this variable
to another variable.
By way of background, this varible is obtained by reading in a line from
a file, then spliting this line and assigning the parts to an array, of
which $old_date_fields[0] is the first element. For some reason, the
nature of how this variable is obtained seems to choke the
program????!!!???
------------------------------
Date: 24 Aug 1999 03:08:35 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: Bizarre inconsistency
Message-Id: <7pt2bj$ci3@dfw-ixnews6.ix.netcom.com>
Perfect Beat (prfctbt@cris.com) wrote:
: As far as the value of the variable, I have tested that too by a
:
: print "$old_date_fields[0]";
:
: statement which, indeed produces that value that I expect (and which I
: have tested by actually using inplace of the variable as well as
: directly assigning to a different variable that I used in its place).
When you're printing out the contents of a variable to see if it really
contains what it's supposed to, it's always a good idea to surround it
with highly visible delimiters like angle brackets or square brackets;
otherwise it's easy to miss things like whitespace that shouldn't be
there (which is the source of a surprising number of bugs).
: The following peculiar phenomenon might shed a clue:
:
: The program also freezes if I merely assign the value of this variable
: to another variable.
:
: By way of background, this varible is obtained by reading in a line from
: a file, then spliting this line and assigning the parts to an array, of
: which $old_date_fields[0] is the first element. For some reason, the
: nature of how this variable is obtained seems to choke the
: program????!!!???
That usually indicates that the different ways of obtaining the variable
are really obtaining different values, even though on first glance they
look like they shouldn't. Try showing us the actual code that you just
described; be sure to copy and paste it rather than retyping it (retyping
it can introduce typos that give false alarms or worse, can "correct" the
actual error and thus hide it).
------------------------------
Date: Tue, 24 Aug 1999 03:14:54 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Bizarre inconsistency
Message-Id: <O6ow3.2056$X%3.10146@nsw.nnrp.telstra.net>
In article <37C15188.9AE5AF71@cris.com>,
Perfect Beat <prfctbt@cris.com> writes:
> As far as escaping the period, I found that was necessary to delimit the
> end of the variable that begins with $, since the period and what
> follows is not part of the variable name.
# perl -w
@a = qw(a b c);
my $foo = "./banana/$a[0].foo";
print "$foo\n";
__END__
./banana/a.foo
Did you actually try it?
>>Maybe this will give you some info on what is going wrong, and why.
>>Maybe one of the directories you are trying to access doesn't exist.
>>Maybe you program is running in a different place than you think it
>>is, and maybe you should use absolute rather than relative paths. Who
>>knows?
>
> I have substitues other variable (including ones explicitly defined as
> the value the my variable is assigned) and there is no problem. So I do
> not think that this is a directory problem.
Maybe I wasn't clear enough:
You do not think, but have you actually checked? Did you include the
$! variable in the error message? Do you check for errors at all?
Where is the _actual_ _relevant_ piece of code that shows us that you
did all of the above. And when you did, what was the error message?
Martien
--
Martien Verbruggen |
Interactive Media Division |
Commercial Dynamics Pty. Ltd. | Curiouser and curiouser, said Alice.
NSW, Australia |
------------------------------
Date: Tue, 24 Aug 1999 03:17:30 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Bizarre inconsistency
Message-Id: <e9ow3.2072$X%3.10146@nsw.nnrp.telstra.net>
In article <37C1A09F.8F974B4F@cris.com>,
Perfect Beat <prfctbt@cris.com> writes:
> I do wish it were this simple. But regardless of whether I HAVE to
> excape the period, escaping the period does not do harm as this works
> with other variables which are also followed by the escaped period.
> Therefore, the escaped period is not the source of the problem.
A more conventional way in perl to do this is:
# perl -w
@a = qw(a b c);
my $foo = "./banana/${a[0]}.foo";
print "$foo\n";
__END__
./banana/a.foo
The curlies are the part of the perl syntax that were designed for
this. BAckwhacking things is a bit misleading.
> As far as the value of the variable, I have tested that too by a
>
> print "$old_date_fields[0]";
This leads me to think that maybe:
> By way of background, this varible is obtained by reading in a line from
> a file, then spliting this line and assigning the parts to an array, of
> which $old_date_fields[0] is the first element. For some reason, the
> nature of how this variable is obtained seems to choke the
> program????!!!???
Does the variable maybe contain a newline? Did you chomp off the
newline when you read it from a file?
Martien
--
Martien Verbruggen |
Interactive Media Division | We are born naked, wet and hungry. Then
Commercial Dynamics Pty. Ltd. | things get worse.
NSW, Australia |
------------------------------
Date: Tue, 24 Aug 1999 03:47:58 GMT
From: Horace Ho <horaceho@geocities.com>
Subject: DST daylight saving period?
Message-Id: <37C215E0.159B3AC4@geocities.com>
How could I check if the local time is in DST?
BTW, what are the starting and end days of
a DST period? Are they different from place to
place?
Thanks
horace
------------------------------
Date: Tue, 24 Aug 1999 03:04:07 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: email address verification
Message-Id: <HYnw3.1987$X%3.10146@nsw.nnrp.telstra.net>
In article <37C18541.6060235@tp.net>,
Paul Falardeau <pef@tp.net> writes:
> Can somebody please post a snippet of code which will check the validity
> of an email address?
The _only_, repeat _only_, way to check the validity of an email
address is by sending an email to it, and seeing if it bounces. And
even then, you will need to inspect the actual content of the message
to find out why it bounced. And even then, the actual content of the
message may not describe the real reason for a bouncing email. And if
the email doesn't bounce, you still don't know anything with
certainty. All you know is that there is an MTA somewhere that either
accepts or silently drops email for that address.
When you get an email back, that is clearly written by a human, and
not an automaton, then you can be fairly certain that the email
address was valid.
Read perlfaq9
# perldoc perlfaq9
How do I check a valid mail address?
Martien
--
Martien Verbruggen |
Interactive Media Division |
Commercial Dynamics Pty. Ltd. | "Mr Kaplan. Paging Mr Kaplan..."
NSW, Australia |
------------------------------
Date: Tue, 24 Aug 1999 02:40:58 GMT
From: Peter L. Berghold <peter@berghold.net>
Subject: Re: Is there a similar Perl command to C's gotoxy?
Message-Id: <935462458.759183916@news.skunkworks.berghold.net>
On Sat, 21 Aug 1999, Anthony Kirby wrote:
>I was wondering if there was a command that would allow me to move the caret
>(block curser) in a ascii environment to a specific place on the screen?
Check out the Curses module....
--
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Peter L. Berghold Peter@Berghold.Net
"Linux renders ships http://www.berghold.net
NT renders ships useless...." ICQ# 11455958
------------------------------
Date: Tue, 24 Aug 1999 02:43:00 GMT
From: Peter L. Berghold <peter@berghold.net>
Subject: Re: LWP Legality Issue?
Message-Id: <935462580.1239334475@news.skunkworks.berghold.net>
On Fri, 20 Aug 1999, DC wrote:
> My questions is this: Is this a copyright violation if I re-display ONLY
>THE FORM portion of their website temporarily ONCE, so I can enter the
>correct search information into the FORM manually?
>
I'm not a copyright attorney, in fact I'm not an attorney at all and don't even
play one on TV. I'd say IMHO that what you are doing *could* be construed as a
copyright violation though...
--
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Peter L. Berghold Peter@Berghold.Net
"Linux renders ships http://www.berghold.net
NT renders ships useless...." ICQ# 11455958
------------------------------
Date: Mon, 23 Aug 1999 23:46:50 -0400
From: Adrian Hands <ahands@sprynet.com>
Subject: Re: matching tags in HTML
Message-Id: <37C215AA.CECE73FC@sprynet.com>
TSOI_WING_SHING wrote:
>
> f there is a HTML file:
>
> <dd>..................................................
> <dd>
> ......................................................
> ......................................................
> <dd>
> ......................
> <dd>
>
> And i write some scripts to change it to:
> <dd>................<dd>...........<dd>.......................<dd>
>
> #codes here
> open(HTML, "+<tt.html");
> undef $/;
> $whole_file=<HTML>;
> $/="\n";
> close(HTML);
>
> $temp=$whole_file;
>
> if ($temp=~/<dd>(.*)<dd>/gsi){
> #print"yes";
> $1=s/\n//i;
>
> }
>
> it said modification of read-only data.........
> how should i do?
> how should i take with the filehandle??
> thx very much
$ perl -wpe 'chomp;' < tt.html > tt.html.$$ && mv tt.html.$$ tt.html
------------------------------
Date: Tue, 24 Aug 1999 02:45:34 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Mulitple calls to the same perl script
Message-Id: <iHnw3.1885$X%3.10146@nsw.nnrp.telstra.net>
In article <7psdqc$e3q$1@hades.csu.net>,
"Stephanie Fox" <sjfox@email.sjsu.edu> writes:
> I have a web form that calls a perl script. It is very likely that several
> people submit the form at the same time. About 1 out of 50 times that
> someone tries to apply, they get a 'Bad Request' error, and the script is
> not called.
>
> Is that because the script is in use?
>
> Is there a way around this?
Implement the script as a singleton.
It's hard to tell exactly what your problem is. We don't know what the
code of the program is. We don't know what the error messages of the
program are. Only you know. Check the error logs of your web server.
Rewrite your script so that it doesn't bomb like that, but instead
writes some information to stdout. Check if maybe your script writes
to a file. If so, you might be able to do something with file locking.
I could go on guessing for hours what might be wrong. But I won't
Martien
--
Martien Verbruggen |
Interactive Media Division | You can't have everything, where would
Commercial Dynamics Pty. Ltd. | you put it?
NSW, Australia |
------------------------------
Date: Tue, 24 Aug 1999 02:52:47 GMT
From: Peter L. Berghold <peter@berghold.net>
Subject: Re: Perl without C compiler.
Message-Id: <935463167.2028883448@news.skunkworks.berghold.net>
On Fri, 20 Aug 1999, Serguei Goumeniouk wrote:
>1) Is it possible to install perl without C compiler (just copy a file
>structure from one computer to another)?
Yes. I do this all the time. If you are really clever you can create a
package of your perl and just install perl onto the target machines via the
pkgadd command.
>In other words: "Does perl need C compiler?"
About as much as a dog needs a fish on its back.
>3) Is it possible to install new perl modules without C compiler?
I would advise that you build your perl in a defined directory structure on a
development machine, build a package for pkgadd from there. See above.
>4) Are there any other solutions for this job?
Typically the way I skin this cat is on my development box "schooner" I build
perl and install all of the optional modules into a tree "/opt/gnu." I also
put any other tools that I'm going to be installing on my production machines
in there as well. I then use pkgmk to create a package for pkgadd. I use that
package to install perl and other tools onto my production systems.
To keep the perl directories up to date, I have another machine that always has
the latest stable version of any Open Source and or GNU tools installed on it
and I use rsync to keep the other productions systems up to date.
--
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Peter L. Berghold Peter@Berghold.Net
"Linux renders ships http://www.berghold.net
NT renders ships useless...." ICQ# 11455958
------------------------------
Date: Mon, 23 Aug 1999 20:46:34 -0700
From: Jon Hollcraft <webmaster@mendonet.com>
Subject: POP is pooped!
Message-Id: <37C2159A.21AC@mendonet.com>
I can't seem to get my pop to pop!
The info contained in the docs isn't getting me there; very scant:
It has:
pop - remove the last element from an array and return it
and
$tmp = $ARRAY[$#ARRAY--];
I want to "pop" off the last line if a logfile array @accesses and
assign it
to variable $accesslast . Is the last element in the array is not a
line?
The logfile entries are written with an ending newline and look fine.
open(KEYS,"$keys") || die print "Cannot Open Keys Data: $!\n";
flock(KEYS, 2);
@accesses=(KEYS);
close(KEYS);
$accesslast=pop(@accesses);
chomp($accesslast); #whack off the newline
{
($item1,$item2,$item3,$item4)=split(/ - /,$accesslast);
other stuff
}
The loglines are written with `` - " delimiter (space hyphen space)
hence the / - / split
Any suggestions will ge greatly appreciated. TIA Jon
------------------------------
Date: Mon, 23 Aug 1999 23:02:59 +0200
From: "Nando" <nando@tetecma.com>
Subject: R: Running CGI scripts on my PC
Message-Id: <wFiw3.625$M%1.7320@typhoon.libero.it>
Magnus Hult <hult.holmstrom@swipnet.se> wrote in message
LRuv3.6701$7d.13544@nntpserver.swip.net...
> Hello,
>
> to compile/interpret Perl on W95 I was recommended ActivePerl. The reason
> why I wanted to write Perl was to run CGI scripts on my own computer to
> check if they were all right before sending them to my Apache server.
That's OK.
>
> But when compiling at home, I got some problems. The first is that the
line:
> print "Content-type: text/html\n\n";
> gets printed out on the resulting page instead of in the file header. Very
> strange. The second is that I'd like the result of the compile to be shown
> in my browser instead of as HTML on a DOS screen. And third, how do I send
> arguments to the script?
see perldoc CGI.
use CGI qw(:standard);
print header, start_html('Title of this page');
print "anything you want";
print end_html;
> I know that script.cgi?var=value won't work because Windows doesn't allow
> question marks in paths. But how do I do?
>
use CGI qw(:standard);
$value = param(var);
This works from Apache as script.cgi?var=value.
To test from DOS prompt you must call:
C:>perl script.cgi var=value
> Maybe ActivePerl isn't the right program for me?
>
> Thank you,
> Magnus Hult
> hult.holmstrom@swipnet.se
>
Hope this helps.
----
Fernando
------------------------------
Date: Mon, 23 Aug 1999 22:31:12 +0200
From: "Nando" <nando@tetecma.com>
Subject: R: WinNT MD5|SHA Perl
Message-Id: <Jbiw3.548$M%1.5847@typhoon.libero.it>
Hi John,
Use Active State Perl and save yourself a lot of trouble:
C:>ppm install MD5.
Hope it helps.
--
Fernando
John <irishcream@iname.com> wrote in message 7ncgak$9q6$1@wanadoo.fr...
> Hello All,
> I've been trying since the 5 hours to compile the CPAN MD5 Perl
> under WinNT, without success. After preparing the adequate
> environment (vcvars32.bat), perl Makefile.PL, nmake, I get
> the following errors
> ----------
> MD5.c
> MD5.xs(54) : error C2065: 'MD5Init_perl' : undeclared identifier
> MD5.xs(88) : error C2065: 'MD5Update_perl' : undeclared identifier
> MD5.xs(99) : error C2065: 'MD5Final_perl' : undeclared identifier
> NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
> Stop.
> --------
> The problem is that in the MD5.xs, the following symbols are
> used wihout being defined anywhere !
> ------------
> /*
> ** The following macro re-definitions added to work around a problem on
> ** Solaris where the original MD5 routines are already in /lib/libnsl.a.
> **/
> #define MD5Init MD5Init_perl
> #define MD5Update MD5Update_perl
> #define MD5Final MD5Final_perl
> -----------
> If I remove them, I got other unrecoverable errors ....
>
> Did any body go through this before anf fix it? Or does anyone know
> a MD5 or SHA Perl implementation for WinNT ?
>
> Thanks
>
> John
>
>
------------------------------
Date: Mon, 23 Aug 1999 19:51:43 -0700
From: Jon Hollcraft <webmaster@mendonet.com>
Subject: Re: Shamefully Funny Answer.
Message-Id: <37C208BF.74A1@mendonet.com>
mrbog@my-deja.com wrote:
> Up to now whenever I'd need to do that, I'd like give them a page that
> either had a meta tag that pushed them where I wanted them to go, or
> I'd have something like <body onload="document.href='http:sfdsdf'">
Hmmm, looks like javascript ... so what if it's turned off?
Here is a Perl solution. Adapted from my index.html td's used
in directories where nobody belongs except me. Disconcerting,
Dissuading, Deserved, and maybe even Darn Funny!
#in configs
$timeout="60"; #set to "0" for "Real" trapdoor action
$trapdoor1='file:///C:/'; #Oh oh! Now what the heck did I do?
#$trapdoor1='http://www.somewhere.com/dir/some.htm'; #set to real URI
#in program
print "Content-type: text/html\n\n";
#other stuff
print "
<meta http-equiv=\"Refresh\" content=\"$timeout; URL=$trapdoor1\">
<html><title>Whatever</title>
#yadda yadda etc
# So who is this General Failure guy anyway, and why is he reading my
hard drive?
------------------------------
Date: Tue, 24 Aug 1999 02:58:20 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: short question - short answer
Message-Id: <gTnw3.1950$X%3.10146@nsw.nnrp.telstra.net>
In article <7prkuq$j79$1@calais.pt.lu>,
"Pletschette André" <andre.pletschette@ltam.lu> writes:
> hi, I need a fast answer please,
>
> how can I take Newline's as parameter's for the command-line to a perl
> Script?
It looks like your key with the "'" on it is broken. It keeps
activating itself in places where it shouldn't.
> I mean, why can't I say
>
> perl prog.pl \n\n \n?
Well, depending on your shell, maybe you can. Your question has
nothing to do at with perl, but is a function solely of the shell you
use to start the perl program. Look in the documentation of your shell
to find out how to do that.
Alternatively, maybe you should consider getting this sort of input
from a file, or stdin, or something like that. Saves a lot of nasty
shell escaping and quoting.
> Thank's for any help.
See? here's that key again.
Martien
--
Martien Verbruggen |
Interactive Media Division | Think of the average person. Half of
Commercial Dynamics Pty. Ltd. | the people out there are dumber.
NSW, Australia |
------------------------------
Date: Tue, 24 Aug 1999 02:59:31 GMT
From: Peter L. Berghold <peter@berghold.net>
Subject: Re: Simple, dumb newbe question... how do I...
Message-Id: <935463571.1573583873@news.skunkworks.berghold.net>
On Thu, 19 Aug 1999, Rusty Williamson wrote:
>Hi!
>
>I can't find or figure out how to do this. Can anyone help?
>
>The command I need is:
>
>my $MYPARAMETER=`fetchParameter(MYPARAMETER)`;
>
Rusty,
I'm a bit confused by what you are trying to do. I'm guessing here but it
looks like your trying to call a sub by the name of fetchParameter passing the
literal "MYPARAMETER."
To make this happen you just create a sub, for instance.
---------8< snip example follows 8<-----------
my $thingie = getStuff("key");
printf "%s\n", $thingie;
exit(0); # not necessary, just a habit I picked up.
sub getStuff {
my $key=shift; # get the parameter...
.... do stuff ...
return $whatever; # $whatever should have what I"m looking for.
}
---------8< snip back to the article 8<---------
If you are trying to call your sub as a "library" check out some of the perl
tutorials on creating modules and such.
--
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Peter L. Berghold Peter@Berghold.Net
"Linux renders ships http://www.berghold.net
NT renders ships useless...." ICQ# 11455958
------------------------------
Date: Tue, 24 Aug 1999 02:42:56 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: someone pleae help
Message-Id: <QEnw3.1875$X%3.10146@nsw.nnrp.telstra.net>
{please fix your quoting style. Put the text you quote _before_ your reply.}
{please consider posting without the PGP info}
In article <IDjw3.198$UR5.42576@news.corecomm.net>,
"James Liu" <jyoyoliu@hotmail.com> writes:
[FIXED QUOTING ABBERATION]
> Carlos Cerna <cerna@cig.mot.com> wrote in message
> news:37BA9B4F.FC0C00D9@cig.mot.com...
>> problem is that I need a script that would read a html page that
>> contains a table (html generated) and allow me to change 6 text
>> fields and write the changes back to the file.
> why don't you try to extract the stuff between the <tr> </tr> tags.
> check the faq. i'm sure you can find some regular expression to let
> you do that.
I bet you he can't. regular expressions cannot parse HTML, except in
some special trivial cases, but never in the general case.
A more correct answer would have been to use the HTML::Parser module
and friends, which is available from CPAN.
Martien
--
Martien Verbruggen |
Interactive Media Division |
Commercial Dynamics Pty. Ltd. | What's another word for Thesaurus?
NSW, Australia |
------------------------------
Date: Tue, 24 Aug 1999 03:19:55 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Split comp.lang.perl.misc
Message-Id: <vbow3.2086$X%3.10146@nsw.nnrp.telstra.net>
In article <7pj6kp$gsv$1@nntp0.reith.bbc.co.uk>,
"James Williamson" <james.williamson@bbc.co.uk> writes:
> What about comp.lang.perl.spam? I'd definitely subscribe to that one....
I vote for comp.lang.perl.discussions.about.splitting.comp.lang.perl.misc.
Would make it a lot more quiet here.
Martien
--
Martien Verbruggen |
Interactive Media Division | +++ Out of Cheese Error +++ Reinstall
Commercial Dynamics Pty. Ltd. | Universe and Reboot +++
NSW, Australia |
------------------------------
Date: Mon, 23 Aug 1999 21:40:17 -0500
From: "John M. Dlugosz" <john@dlugosz.com>
Subject: Re: system() under Win32
Message-Id: <D30AD240B15AF82D.6EFAF3D0AB47BACE.59C5C37356063C2F@lp.airnews.net>
Alan J. Flavell <flavell@mail.cern.ch> wrote in message
news:Pine.HPP.3.95a.990823120443.22841C-100000@hpplus03.cern.ch...
> Are you asserting that there is no difference between Win95/98, WInNT,
> maybe even Win2000?
In terms of how file names and exec differs from UNIX, yes.
I suspect this may have already been fixed, as I can't reproduce it with a
trivial program at home, but it shows up at work. I'll report back when I
get to the bottom of it.
--John
------------------------------
Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 1 Jul 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.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
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.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq" from
almanac@ruby.oce.orst.edu. The real FAQ, as it appeared last in the
newsgroup, can be retrieved with the request "send perl-users FAQ" from
almanac@ruby.oce.orst.edu. Due to their sizes, neither the Meta-FAQ nor
the FAQ are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq" from
almanac@ruby.oce.orst.edu.
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 626
*************************************