I can resolve a constant in a print statement like so:
use constant QX12_FILE => "q_x12_in.dat";
...
print STDERR "could not change permissions on file @{[ QX12_FILE ]}: $!";
but how to resolve the constant when being used in a function call, like so:
use constant QX12_FILE => "q_x12_in.dat";
...
rename(@{[ QX12_FILE ]}, "foo.dat");
The print() works - resolves - ok....the rename() does not. I assume it has
something to do with the syntax of @{[ QX12_FILE ]}.
thanks!
> Anthony (Tony) Esposito
> Senior Technical Consultant
> Inovis(tm), formerly Harbinger and Extricity
> 2425 N. Central Expressway, Suite 900
> Richardson, TX 75080
> (972) 643-3115
> [EMAIL PROTECTED]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]