Does anybody know what is the problem?When in doubt, B::Deparse it out
So there you're passing an anonymous hash to close which it the tries to dereference as a glob and subsequently fails. As others have suggested you need to use parentheses instead of curly brackets.shell> perl -MO=Deparse - open(GENERAL_LOG,">$generalFile"); close{GENERAL_LOG}; open GENERAL_LOG, ">$generalFile"; close *{{'GENERAL_LOG'}}; - syntax OK
_________
broquaint
In reply to Re: Not a GLOB refernce
by broquaint
in thread Not a GLOB refernce
by dorimes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |