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

Re: Use of the m/.../g idiom in list context (formatting MAC addresses)

by eyepopslikeamosquito (Archbishop)
on Jan 18, 2005 at 06:47 UTC ( [id://422907]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $mac = join( ':' => ($mac =~ /(..)/g) );
    
  2. or download this
    $mac = join( ':' => ($mac =~ /../g) );
    
  3. or download this
    join("", my_slurp_file_function($fname) =~
       /^=begin[ \t]+$sname[ \t]*\n(.*?)^=end[ \t]+$sname[ \t]*$/msg);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found