]>
jfr.im git - irc/SurrealServices/srsv.git/blob - branches/erry-devel/SrSv/Insp/testUUID.pl
2 # This file is part of SurrealServices.
4 # SurrealServices is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU Lesser General Public License version 2.1,
6 # as published by the Free Software Foundation.
8 # SurrealServices is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public License
14 # along with SurrealServices; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 THIS CODE IS alpha only
, and untested
. Don
't just trust it blindly.
26 # the next 2 lines are temp, you should use the 3rd.
28 import SrSv::Insp::UUID qw( decodeUUID encodeUUID );
29 #use SrSv::Insp::UUID;
31 my $int = decodeUUID
('751AAAAAA');
33 print log($int)/log(2), "\n";