Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Concatenate and join

by GotToBTru (Prior)
on Mar 31, 2016 at 03:47 UTC ( [id://1159178]=note: print w/replies, xml ) Need Help??


in reply to Concatenate and join

Because this method is destructive, I copy the @mac_add array before processing.

my @mac_add = qw/28 8a 1c 59 cc 85/; my (@list,@parts); @list = @mac_add; while(@list) { push @parts, join '', splice @list,0,2 } my $mac_R5 = join '.',@parts;
But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-25 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found