Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of rafael (2125)

Thursday November 02, 2006
07:42 AM

New features in bleadperl

[ #31489 ]
I added two features in bleadperl recently:

# new prototype character !
# _ is just like $, except that it defaults to $_ :
sub foo (_) {
    print "<@_>\n";
}
foo(42); # prints <42>
foo(); # equivalent to foo($_)

And another one, you can now override readpipe() :

BEGIN{
    *CORE::GLOBAL::readpipe = sub($){ ... }
}
qx/foo/; # calls the function with "foo" as argument
`foo`; # same thing

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.