Re: Different methods to call a subroutine!



pod69@xxxxxxx wrote:
Is there any difference if i call a subroutine wit subroutine() or
&subroutine() - whats the different with the "&"!
Can anyone tell me that?

Everyone so far has instructed you to read `perldoc perlsub`. That's
good advice. To help you narrow it down, the shortest answer is:

& disables prototype-checking and passes the current @_.

Search for "prototype" and "@_" within perlsub for more details.

Paul Lalli

.



Relevant Pages

  • Re: Unzip to newly created directory...
    ... Paul Lalli wrote: ... the merry go round of replies you've made necessary to get you to make ... Then you should have asked that someone else why his advice doesn't ...
    (perl.beginners)
  • Re: Can explain the MAP function more clearly? Thanks
    ... first argument to map. ... perldoc perlsub tells us: ... the sub keyword or a subsequent comma" ... Paul Lalli ...
    (comp.lang.perl.misc)
  • Re: split the sequences
    ... > Rita wrote: ... >> Paul Lalli wrote: ... You did not use all my advice. ... close or die $!; ...
    (comp.lang.perl.misc)
  • Re: Misbehaving sort function
    ... >> Paul Lalli wrote: ... >>> Okay. ... So my advice remains the same. ... >>> (in Perl)? ...
    (comp.lang.perl.misc)
  • Re: split the sequences
    ... >> Rita wrote: ... You did not use all my advice. ... you not following all my requests is only hurting matters. ... Paul Lalli ...
    (comp.lang.perl.misc)