perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kee Hinckley <>
Subject Re: Feature request: [$ hidden $] in URLs
Date Wed, 18 Apr 2001 17:23:08 GMT
Hash: SHA1

At 11:37 AM -0400 4/18/01, Kee Hinckley wrote:
>1. By duplicate entries, I mean will that expand a="foo\tbar" (which
>is the result of ?a=foo&a=bar) appropriately?
>2. I can't get that to work at all.  It results in "?2000" when I do it.

After some thought I realized that Perl is interpreting the {}'s as a 
block.  This solves problem #2.

[+ my $foo = { %fdat, day => 1, month => 10, year => 2000 } +]

However as I suspected, arguments that came into %fdat via duplicate 
entries do not get expanded correctly.  The end up going out with a 
tab in them.  So long as the page that then processes them does in 
fact use Embperl to process the arguments, and thus expects multiple 
arguments to be tab-separated, then it will work okay, but I'd be 
happier if it automatically expanded it into two arguments.

(Frankly, I'd *really* be happier if Embperl had a flag I could set 
to tell it to use array references in cases like that, instead of the 
tab hack.  But that's a separate issue, and Embperl's just following 
the CGI convention.)
- -- 
Kee Hinckley - Somewhere.Com, LLC

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

Version: PGPfreeware 7.0.3 for non-commercial use <>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message