Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by eyepopslikeamosquito (Chancellor)
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 !@monks...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (1)
As of 2017-09-23 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (272 votes). Check out past polls.

    Notices?