Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: possible combinations in sequence

by ikegami (Patriarch)
on Jun 08, 2006 at 23:33 UTC ( [id://554383]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Algorithm::Loops qw( NestedLoops );
    
    ...
    my @s;
    print(join(':', map $parts[$_], @s), "\n")
       while @s = $iter->();
    
  2. or download this
    my $source = 'horse:cow:dog:cat';
    my @parts = split(/:/, $source);
    ...
               0..$#parts;
       print("$s\n");
    }
    
  3. or download this
    my $source = 'horse:cow:dog:cat';
    
    ...
    local our @rv;
    /$re/;
    print "$_\n" foreach @rv;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-18 18:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found