1 package Debbugs::Common;
7 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
9 # set the version for version checking
13 @EXPORT = qw(&fail &NameToPathHash &sani &quit);
14 %EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ],
16 # your exported package globals go here,
17 # as well as any optionally exported functions
22 use Debbugs::Config qw(%Globals);
25 my $DEBUG = new FileHandle;
34 # 12345 -> 5/4/3/12345
38 $name =~ /^.*?(.)(.)(.)$/ ;
40 $name =~ /^(.*?)(.)(.)$/ ;
43 $tmp =~ /^.*?(.)(.)(.)$/ ;
44 return "$3/$2/$1/$name";
53 DEBUG("quitting >$_[0]<\n");
55 while ($u= $cleanups[$#cleanups]) { &$u; }
60 HTML::Entities::encode($a);
63 END { } # module clean-up code here (global destructor)