Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: intermix list of items

by ikegami (Patriarch)
on Oct 10, 2004 at 18:13 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://398021]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found