Brad Bowman skribis 2005-12-09 20:14 (+0100):
> $str ~~ my m/ mv @files:=+ $dir:= /
> Nah, that's ugly.
It's mostly ugly because you're not used to it, I think.
my m[mv @files:=+ $dir:=] ~~ $str;
Looks nicer, though.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convoluti
On 08/12/05 17:12, Larry Wall wrote:
> On Thu, Dec 08, 2005 at 11:14:16PM +0100, Brad Bowman wrote:
> : it may be acceptable with a "my" in the regex or limiting the
> : additions to declaring scope.
>
> I've gone around about that in my head lots of time, but there isn't
> a good way to sneak a "
On Thu, Dec 08, 2005 at 11:14:16PM +0100, Brad Bowman wrote:
: Hello,
:
: I'd like to get clarification on the scoping of variables
: bound in a regex. It's described in S05 as follows:
:
: External aliasing
:
: * Instead of using internal aliases like:
:
: m/ mv @:=+ $:= /
:
:
Hello,
I'd like to get clarification on the scoping of variables
bound in a regex. It's described in S05 as follows:
External aliasing
* Instead of using internal aliases like:
m/ mv @:=+ $:= /
the name of an ordinary variable can be used as an "external
alias", like