Re: extract variables from expression
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 29 Apr 2006 20:15:34 GMT
"Matt Garrish" <matthew.garrish@xxxxxxxxxxxx> wrote in
news:HmK4g.2562$1V4.199028@xxxxxxxxxxxxxxxxxxxxx:
<alexjaquet@xxxxxxxxx> wrote in message
news:1146318054.422388.185420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
thx for responding but If I test the following :
....
for (local our $i = 0;$i < length($value);$i++) {
Why are you using a package scope variable for a simple loop variable?
if ($value =~ m#\[([^\]]+)](.*?)\[/quote]#) {
What do you think this loop is doing?
$speaker = (split(/=/, $1))[1];
$quote = $2;
}
print "Content-Type: text/html\n\n";
The header should only be printed once.
print "$speaker\n";
print "$quote\n";
Why do you lie to the web browser?
Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(remove .invalid and reverse each component for email address)
comp.lang.perl.misc guidelines on the WWW:
http://augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.
- References:
- extract variables from expression
- From: alexjaquet
- Re: extract variables from expression
- From: Matt Garrish
- extract variables from expression
- Prev by Date: Re: share a session between two website
- Next by Date: Re: Perl script does not work
- Previous by thread: Re: extract variables from expression
- Next by thread: Re: extract variables from expression
- Index(es):
Relevant Pages
|