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 (Pope)
on Jun 08, 2006 at 23:33 UTC ( #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
Node Status?
node history
Node Type: note [id://554383]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2020-10-29 17:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (274 votes). Check out past polls.

    Notices?