Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2015-06-03 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?















    Results (132 votes), past polls