/[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 213 - (show annotations)
Thu Aug 13 12:06:35 2009 UTC (14 years, 9 months ago) by dpavlin
File size: 237 byte(s)
extracted pretty printer into format.pm
1 package format;
2
3 use warnings;
4 use strict;
5
6 sub mac {
7 my ( $mac, $op ) = @_;
8 $op ||= 'html';
9 $mac =~ s{(..)}{$1:}g;
10 $mac =~ s{:$}{};
11 $mac = qq|<tt>$mac</tt>| if (caller(1))[3] =~ m{^httpd} && $op ne 'clean';
12 return uc($mac);
13 }
14
15 1;

  ViewVC Help
Powered by ViewVC 1.1.26