This will produce the IO::Handle error, but if you remove the open() line, ALIAS will work as a package name. So, this is not a reserved word problem!package ALIAS ; sub close { print "CLOSE>> @_\n" ; } package main ; open(ALIAS , ">&STDIN") ; ALIAS->close() ;
Graciliano M. P.
"Creativity is the expression of the liberty".
In reply to Re: Bad news for IO::Handle magic
by gmpassos
in thread Bad news for IO::Handle magic
by Stevie-O
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |