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 ;-)
In reply to Re^2: grep question
by demerphq
in thread grep question
by newest_newbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |