Dear Rob and the others,

> > First I start the following cmd file:
> >
> > --- begin ---
> > SET FOO_TOKEN=BAR
> > CALL SET %FOO_TOKEN%_DIR=c:bar
> > --- end ---
> >
> > After that I start in the _same_ environment (cmd) the following perl
> code:
> >
> > --- beginn ---
> > use strict;
> > use warnings;
> >
> > my $foo_token_dir   = "%%FOO_TOKEN%_DIR%";
> > my $foo_token_value = "";
> >
> > $foo_token_value = $ENV{ $foo_token_dir };
> 
> That should work, except that the variable you set is called
> %FOO_TOKEN%_DIR, and the one you asked for is called %%FOO_TOKEN%_DIR%
> (which is different and doesn't exist - hence the uninitialised value).

It doesn't even exists "%FOO_TOKEN%_DIR" it only exists "BAR_DIR"! 
So how do I come from "%FOO_TOKEN%_DIR" to "BAR_DIR"?

Bye 
Karl-Heinz










_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to