in reply to how to make a package variable as c++
something => another_thing means "something", another_thing (note the quotes, see Comma Operator for more info). Did you mean just "="?#Error here: Useless use of hash element in void context $singleton->{$XMLfile_name}=>$_;
You also seem to use $_ instead of elements in @_. Fuction arguments are in the @_ array (which is modified by shift, by the way), not in the single $_ scalar variable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to make a package variable as c++
by Anonymous Monk on Nov 04, 2012 at 09:49 UTC | |
|
Re^2: how to make a package variable as c++
by Anonymous Monk on Nov 04, 2012 at 09:44 UTC | |
|
Re^2: how to make a package variable as c++
by anaconda_wly (Scribe) on Nov 04, 2012 at 09:53 UTC |