duperdog has asked for the wisdom of the Perl Monks concerning the following question:
sub get_arg { shift =~ /\W([^=]+)/; $1; } my $reqid = get_arg(FCP_REQID=103806); # returns 103806 my $login = get_arg(FCP_LOGIN="USER/PASS"); #returns "USER/PASS", des +ire USER/PASS
(my $login = get_arg(FCP_LOGIN="USER/PASS") =~ tr/\"//d; __DATA__ FCP_REQID=103806 FCP_LOGIN="USER/PASS" FCP_USERID=3944 FCP_PRINTER="noprint"
davorg: expanded node title
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with regexp
by boo_radley (Parson) on Nov 28, 2001 at 02:53 UTC | |
by CharlesClarkson (Curate) on Nov 28, 2001 at 08:35 UTC | |
by duperdog (Initiate) on Nov 28, 2001 at 19:01 UTC | |
|
Re: Help with regexp
by dragonchild (Archbishop) on Nov 28, 2001 at 02:41 UTC |