in reply to Re: grep question
in thread grep question
I think you meant:
perl -le 'print map { /param=(.*)/ ? $1 : () } "param=value";'
$1 is only set if the match is succesful.
(merlyn i beat you to it ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: grep question
by trammell (Priest) on May 26, 2005 at 22:06 UTC | |
by brian_d_foy (Abbot) on May 26, 2005 at 22:27 UTC | |
by trammell (Priest) on May 26, 2005 at 23:26 UTC |