Re: Clarification for External Regex Variables?

2005-12-09 Thread Juerd
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

Re: Clarification for External Regex Variables?

2005-12-09 Thread Brad Bowman
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 "

Re: Clarification for External Regex Variables?

2005-12-08 Thread Larry Wall
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 @:=+ $:= / : :

Clarification for External Regex Variables?

2005-12-08 Thread Brad Bowman
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