ebarrere has asked for the wisdom of the Perl Monks concerning the following question:
like so does not work ("Can't modify logical and (&&) in scalar assignment at...").m/^(\s)?exten => (35\d\d)[^;]+;(.*)/ &&my ($extension,$name) = ($2,$3)
Hopefully what I'm trying to do is clear from my snippets! Is there a way to do it? Thanks in advance!m/<same regex>/ && print ($2,$3);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Set variables from m//
by ikegami (Patriarch) on Jun 24, 2009 at 01:35 UTC | |
by ebarrere (Initiate) on Jun 24, 2009 at 02:33 UTC | |
by ikegami (Patriarch) on Jun 24, 2009 at 02:50 UTC |