in reply to Sending an anonymous hash to a sub
You didn't pass an anonymous hash, you passed a reference to an anonymous hash, because you used {} instead of ().
This works:
--Bob Niederman, http://bob-n.comdescribe( (name=>'buffy',job=>'vampire slayer' ) );
All code given here is UNTESTED unless otherwise stated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Sending an anonymous hash to a sub
by revdiablo (Prior) on Sep 03, 2003 at 01:44 UTC | |
by bobn (Chaplain) on Sep 03, 2003 at 04:09 UTC |