shemp has asked for the wisdom of the Perl Monks concerning the following question:
...or other funciton sets, etcuse CGI qw(:form);
Not exactly what i wanted to do, but it works for my purposes, it just feels unclean.sub AUTOLOAD { my $self = shift @_; (my $method = $AUTOLOAD) =~ s/.*:://; return if $method eq "DESTROY"; if ( ! (@_ % 2) ) { my %args = @_; if ( exists($args{-page}) && exists($args{-param}) ) { # appears to be a form element creation call to CGI $args{-name} = $self->CreateRawFieldName(-page => $args{ +-page}, -param => $args{ +-param}); delete $args{-page}; delete $args{-param}; my $parent_call = 'SUPER::' . $method; return $self->$parent_call(%args); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Imported symbol names
by gellyfish (Monsignor) on Jul 08, 2004 at 15:55 UTC | |
|
Re: Imported symbol names
by dragonchild (Archbishop) on Jul 08, 2004 at 17:21 UTC | |
by shemp (Deacon) on Jul 08, 2004 at 18:05 UTC | |
by dragonchild (Archbishop) on Jul 08, 2004 at 18:17 UTC | |
by shemp (Deacon) on Jul 08, 2004 at 18:32 UTC | |
by dragonchild (Archbishop) on Jul 08, 2004 at 20:51 UTC | |
|
Re: Imported symbol names
by shemp (Deacon) on Jul 08, 2004 at 18:16 UTC |