in reply to Re^2: design the open function
in thread design the open function
I'm not sure if I understand. If you have to open your files with different layers depending on an environment variable, then something like this should do the trick:
open my $in, "<:$ENV{LAYER}", $infile or die $!; open my $out, ">:$ENV{LAYER}", $outfile or die $!; # ...
Of course if you depend like that one an environment variable then you should take care of doing some validation: the above is meant as a minimal example...
PS: it's clear that English is not your mother tongue, it's not mine either: so I suggest you take a deep breath and try to find a good wording to express your questions, because I bet I'm not the only one having difficulties to understand what you mean.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: design the open function
by jhourcle (Prior) on May 10, 2006 at 17:11 UTC |