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

RE: (Adam: JoinMapSplit) RE: One for the regexp fans

by Anonymous Monk
on Aug 05, 2000 at 01:44 UTC ( #26279=note: print w/ replies, xml ) Need Help??


in reply to (Adam: JoinMapSplit) RE: One for the regexp fans
in thread One for the regexp fans

How about using sprinf: $mac = join "", map {sprintf "%02s", $_} split '\.', $addr


Comment on RE: (Adam: JoinMapSplit) RE: One for the regexp fans
Replies are listed 'Best First'.
RE: RE: (Adam: JoinMapSplit) RE: One for the regexp fans
by PrakashK (Pilgrim) on Aug 05, 2000 at 02:11 UTC
    Forgot to put CODE tags, so I am replying to myself.

    <CODE>$mac = join "", map {sprintf "%02s", $_} split '\.', $addr<CODE>

RE: RE: (Adam: JoinMapSplit) RE: One for the regexp fans
by PrakashK (Pilgrim) on Aug 05, 2000 at 02:10 UTC
    Forgot to put CODE tags, so I am replying to myself. <CODE>$mac = join "", map {sprintf "%02s", $_} split '\.', $addr<CODE>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2015-07-30 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls