Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 ( [id://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!).

Replies are listed 'Best First'.
Re^6: compiling perl scripts aka why is perl not as fast as C
by ikegami (Patriarch) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://830124]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-26 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found