Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by eyepopslikeamosquito (Canon)
on Jan 18, 2005 at 06:47 UTC ( #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
Node Status?
node history
Node Type: note [id://422907]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-07-26 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls