Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^5: compiling perl scripts aka why is perl not as fast as C

by Hue-Bond (Priest)
on Mar 22, 2010 at 17:50 UTC ( #830124=note: print w/ replies, xml ) Need Help??


in reply to Re^4: compiling perl scripts aka why is perl not as fast as C
in thread compiling perl scripts aka why is perl not as fast as C

@array acts like a function. It takes an arg and returns a value based on the input and context.

Excuse me but, what would be the argument?

--
 David Serrano
 (Please treat my english text just like Perl code, i.e. feel free to notify me of any syntax, grammar, style and/or spelling error. Thank you!).


Comment on Re^5: compiling perl scripts aka why is perl not as fast as C
Download Code
Re^6: compiling perl scripts aka why is perl not as fast as C
by ikegami (Pope) on Mar 22, 2010 at 17:56 UTC
    The array / array name / pad slot
    sub array { my ($self) = @_; wantarray ? $self->length : $self->contents }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://830124]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2015-07-03 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (54 votes), past polls