POEx-URI
view release on metacpan or search on metacpan
lib/POEx/URI.pm view on Meta::CPAN
{
my $self = shift;
my $old = $self->_argument;
if( @_ ) {
if( 1==@_ ) {
my $new = shift;
unless( ref $new ) {
$self->query( $new );
}
elsif( 'ARRAY' eq ref $new ) {
$self->query_keywords( $new );
}
else {
$self->query_form( $new );
}
}
else {
$self->query_form( @_ );
}
}
return unless defined $old;
lib/POEx/URI.pm view on Meta::CPAN
=head2 argument
$arg = $uri->argument
$old = $uri->argument( $new_arg );
$old = $uri->argument( %new_arg );
$old = $uri->argument( \@new_arg );
Sets and returns the argument for this $uri. And argument may be a string,
a hash (L<URI/query_form>) or an arrayref (L<URI/query_keywords>).
See L</as_array> to see how the argument is passed to the event handler.
=head2 user
$user = $uri->user;
$old = $uri->user( $user );
Sets and returns the username part of the $uri's L<URI/userinfo>. If the
user name contains C<:>, it is escaped.
( run in 1.687 second using v1.01-cache-2.11-cpan-299005ec8e3 )