perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angus Lees <...@switchonline.com.au>
Subject Re: Feature request: [$ hidden $] in URLs
Date Tue, 17 Apr 2001 23:50:00 GMT
On Wed, Apr 18, 2001 at 09:39:43AM +1000, Angus Lees wrote:
> On Tue, Apr 17, 2001 at 02:45:30PM -0400, Kee Hinckley wrote:
> > "?day=1&month=10&year=2000&search=[+$fdat{search}+]"
> 
> its uglier to do it yourself, but not difficult:
> 
> [!
>  sub strip {
>    my %copy = %fdat;
>    delete @copy{@_};
>    \%copy;
>  }
> !]
> 
> "?day=1&month=10&year=2000&[+ strip(qw(day month year)) +]"

alternatively, don't delete those keys, just override them..

"?[+ { %fdat, day => 1, month => 10, year => 2000 } +]"

-- 
 - Gus

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message