Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by LanX (Sage)
on Nov 13, 2021 at 20:20 UTC ( #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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2022-06-30 17:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (98 votes). Check out past polls.

    Notices?