Re: Perl Bug or stupidity on my part? - I looked in FAQs and dejanews prior to posting
From: Eric Amick (eric-amick_at_comcast.net)
Date: 01/11/04
- Next message: Randal L. Schwartz: "Re: search "window" pattern matching"
- Previous message: Cheez: "search "window" pattern matching"
- In reply to: Zachary Buckholz: "Perl Bug or stupidity on my part? - I looked in FAQs and dejanews prior to posting"
- Next in thread: Zachary Buckholz: "Re: Perl Bug or stupidity on my part? - I looked in FAQs and dejanews prior to posting"
- Reply: Zachary Buckholz: "Re: Perl Bug or stupidity on my part? - I looked in FAQs and dejanews prior to posting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 11 Jan 2004 13:43:38 -0500
On 10 Jan 2004 21:01:48 -0800, zbuckholz@hotmail.com (Zachary Buckholz)
wrote:
>I am passing a reference to a hash where the key is a scalar and each
>value is a reference to an array to another sub. But unless I use a
>subscript like $_[0] I can not get it in the recieving sub. Typically
>I can just use $_ when passing one variable;
The only way I can picture that working is if $_ happened to have the
same value as the argument you passed. With $_ normally being global,
it would appear to work as you describe. As others have already pointed
out, it certainly doesn't work in general.
-- Eric Amick Columbia, MD
- Next message: Randal L. Schwartz: "Re: search "window" pattern matching"
- Previous message: Cheez: "search "window" pattern matching"
- In reply to: Zachary Buckholz: "Perl Bug or stupidity on my part? - I looked in FAQs and dejanews prior to posting"
- Next in thread: Zachary Buckholz: "Re: Perl Bug or stupidity on my part? - I looked in FAQs and dejanews prior to posting"
- Reply: Zachary Buckholz: "Re: Perl Bug or stupidity on my part? - I looked in FAQs and dejanews prior to posting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|