On Sat 29 Jul, Vincent Lefevre wrote:
> Consider the following Perl script:
>
> $_ = $ENV{'Alias$blah'};
> tr/\000/./;
> print "$_\n";
>
> I define the following alias:
>
> *Alias blah a|@b
>
> and
>
> *Show Alias$blah
>
> says:
>
> Alias$blah : a|@b
>
> But if I execute the script, only the "a" is printed.
>
> I have Perl 5.005_03, release 1.13.
>
Can a single | be part of an environment variable so far as Perl is
concerned? May it not be treated as an alternative? I note that *set BLAH
(rather than *alias BLAH) a||@b produces a|@b when the script is run and
*set BLAH a|||@b produces a| (*set BLAH a||||@b produces a||@b ...)
Just out of interest why do you want a | in an environmment variable?
Roger
--
Roger Horne
11 New Square, Lincoln's Inn, London WC2A 3QB
mailto:[EMAIL PROTECTED]
http://www.hrothgar.co.uk/