Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^6: What technical benfits perl offers over python + few more questions. (generator/iterator/closure)

by LanX (Saint)
on Nov 13, 2021 at 20:20 UTC ( [id://11138797]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    while ( my ($val) = $iter->() ) {
        print "$val\n";
    }
    
  2. or download this
        
    C:/Strawberry/perl/bin\perl.exe -w d:/tmp/pm/generator_iterator.pl 
    5
    ...
    17
    
    Compilation finished at Sat Nov 13 21:18:20
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found