Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: do/redo or for(;;): what's Kosher?

by Juerd (Abbot)
on Jan 04, 2002 at 13:30 UTC ( #136238=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    #!/usr/bin/perl -w
    use strict;
    for (;;)  57.6/s        --       -0%       -5%
    {; redo;} 57.7/s        0%        --       -4%
    while (1) 60.3/s        5%        5%        --
  2. or download this
    2;1 juerd@ouranos:~$ perl -MO=Deparse -e'while (1) { print "1\n" }'
    for (;;) {
        print "1\n";
    -e syntax OK
  3. or download this
    2;0 juerd@ouranos:~$ perl -e'undef christmas'
    Segmentation fault
    2;139 juerd@ouranos:~$

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (15)
As of 2015-07-07 22:00 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (93 votes), past polls