Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: intermix list of items

by ikegami (Pope)
on Oct 10, 2004 at 18:13 UTC ( #398021=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub intermix { 
       my $a_prime = join('.', reverse(split(/\./, $a)));
    ...
    $VAR2 = '10.2.2.1';
    $VAR3 = '10.1.1.2';
    $VAR4 = '10.2.2.2';
    
  2. or download this
    sub intermix { 
       my $a_prime = reverse($a);
    ...
    $VAR2 = '10.2.2.1';
    $VAR3 = '10.1.1.2';
    $VAR4 = '10.2.2.2';
    
  3. or download this
    my @list = ('10.1.1.1', '10.1.1.2', '10.2.2.1', '10.2.2.2');
    @list = map { $_->[0] } 
    ...
    $VAR2 = '10.2.2.1';
    $VAR3 = '10.1.1.2';
    $VAR4 = '10.2.2.2';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2021-05-16 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (151 votes). Check out past polls.

    Notices?