Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by Anonymous Monk
on Aug 05, 2000 at 01:44 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found