Instead of + use *. * means 0 or more while + means 1 or more
On Nov 21, 2012 4:51 PM, "shawn wilson" <[email protected]> wrote:

> how do i return something when i've got a long regex and one of the
> captures is empty?
>
> $_ = '"435" "" "634";
> my ($one, $two, $three)= /^
>    "(\d+)"\
>    "(\d+)"\
>    "(\d+)"
> /x;
>
> --
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> http://learn.perl.org/
>
>
>

Reply via email to