/[pxelator]/lib/PXElator/format.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /lib/PXElator/format.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 216 - (show annotations)
Thu Aug 13 13:06:18 2009 UTC (14 years, 8 months ago) by dpavlin
File size: 226 byte(s)
cleanup format::mac
1 package format;
2
3 use warnings;
4 use strict;
5
6 sub mac {
7 my ($mac,$op) = @_;
8 $op ||= '';
9 if ( $mac !~ m{:} ) {
10 $mac =~ s{(..)}{$1:}g;
11 $mac =~ s{:$}{};
12 }
13 $mac = qq|<tt>$mac</tt>| if $op =~ m{htm};
14 return uc($mac);
15 }
16
17 1;

  ViewVC Help
Powered by ViewVC 1.1.26