in reply to Not a GLOB refernce
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
|
|---|