Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: execute a string as a function

by Anonymous Monk
on Aug 07, 2013 at 08:06 UTC ( [id://1048286]=note: print w/replies, xml ) Need Help??


in reply to Re^2: execute a string as a function
in thread execute a string as a function

perlsub
  &NAME(LIST);   # Circumvent prototypes.
  &NAME;         # Makes current @_ visible to called subroutine.

Replies are listed 'Best First'.
Re^4: execute a string as a function
by Anonymous Monk on Aug 07, 2013 at 08:57 UTC
    cute, where are the sideffects?
    &unpack_c( $lines[$_] ) ; VERSUS unpack_c( $lines[$_] ) ;
      As the documentation said, it circumvents prototypes (if any). But the more cromulent reason is that it's the Perl4-style function call syntax which hasn't been needed for almost two decades. (And I think we all can agree on that we want to move past Perl 4.)
        Not sure why anyone would want to move beyond Perl 4.

        Oh, never mind, even I have moved beyond Perl 4:

        C:\Steve\Dev\PerlMonks>perl -v This is perl, v5.8.9 built for MSWin32-x64-multi-thread (with 12 registered patches, see perl -V for more detail)

        Apparently I need sleep. Or coffee. Still.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found