in reply to Glob error check giving warning

$ echo Value of glob construct can be "0"; test with defined() at perl +.pl line 65. |splain Value of glob construct can be "0"; test with defined() at perl.pl lin +e 65. (#1) (W misc) In a conditional expression, you used <HANDLE>, <*> (glob +), each(), or readdir() as a boolean value. Each of these constructs can return a value of "0"; that would make the conditional express +ion false, which is probably not what you intended. When using these constructs in conditional expressions, test their values with the defined operator.