Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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
Domain Nodelet?
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 about the Monastery: (2)
As of 2023-03-30 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (74 votes). Check out past polls.

    Notices?