Re: naming subroutine reference parameter?
- From: mpapec@xxxxxxxxx (Matija)
- Date: Wed, 07 Sep 2005 11:26:30 +0200
Jeff Pan wrote:
>>>my (%hash,@array);
>>>&sub_test(\%hash,\@array);
>>
>>& has special meaning so it should be dropped when not needing
>>particular special behavior.
>
>
> I can't understand for this,can u give me some examples?
perldoc perlsub
--
&NAME(LIST); # Circumvent prototypes.
&NAME; # Makes current @_ visible to called subroutine.
Use "&" only when you want described side effects.
.
- References:
- naming subroutine reference parameter?
- From: Jayvee Vibar
- Re: naming subroutine reference parameter?
- From: Jeff Pan
- Re: naming subroutine reference parameter?
- From: Matija Papec
- Re: naming subroutine reference parameter?
- From: Jeff Pan
- naming subroutine reference parameter?
- Prev by Date: Re: Net::POP3
- Next by Date: Re: Perl and Unix/Linux Tutorials
- Previous by thread: Re: naming subroutine reference parameter?
- Next by thread: Re: naming subroutine reference parameter?
- Index(es):
Relevant Pages
|
Loading