Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Autoboxing ... "Yes We Can" ( or how I learned to love TIMTOWTDI )

by choroba (Cardinal)
on Dec 13, 2013 at 20:52 UTC ( [id://1067071]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    use strict;
    ...
              ->$grep(sub { /1/ } )
              ->$join("\n")
              ->$say("\nIt works!");
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    say for sub { not $_ % 10 }->$grep(1 .. 100);
    say '-' x 20;
    say for 5->$grep(1 .. 100);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found