in reply to Re: /foo${re}bar/
in thread /foo${re}bar/

Why not /foo{$re}bar/? Just that {} already is used for repetition, and a number would get interpolated?

Which usage came first in Perl-time?

Replies are listed 'Best First'.
Re: Re: Re: /foo${re}bar/
by BUU (Prior) on Jul 27, 2003 at 04:22 UTC
    er, no. ${foo} has been the standard way to disambiguate variables for a long time now and was independent of regex. Mostly used for strings, aside from this as in: print "${Foo}bar" and similar, also used for references, so called "soft" refs in the form of ${"foo"} and hard refs in the form of $x=\$foo; ${$x} Also works with the various other sigils, $%@.