/[cvs]/nfo/perl/libs/Data/Mungle/Transform/String.pm
ViewVC logotype

Diff of /nfo/perl/libs/Data/Mungle/Transform/String.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Sun Jan 19 03:27:36 2003 UTC revision 1.2 by root, Fri Jan 31 01:22:19 2003 UTC
# Line 2  Line 2 
2  ##  $Id$  ##  $Id$
3  ## ---------------------------------------------------------------------------  ## ---------------------------------------------------------------------------
4  ##  $Log$  ##  $Log$
5    ##  Revision 1.2  2003/01/31 01:22:19  root
6    ##  + sub getLastPart
7    ##
8  ##  Revision 1.1  2003/01/19 03:27:36  joko  ##  Revision 1.1  2003/01/19 03:27:36  joko
9  ##  + initial check-in  ##  + initial check-in
10  ##  ##
# Line 16  use warnings; Line 19  use warnings;
19  require Exporter;  require Exporter;
20  our @ISA = qw( Exporter );  our @ISA = qw( Exporter );
21  our @EXPORT_OK = qw(  our @EXPORT_OK = qw(
22    stripHtml stripSpaces stripNewLines toReal trim    stripHtml stripSpaces stripNewLines toReal trim getLastPart
23  );  );
24    
25  sub stripHtml {  sub stripHtml {
# Line 66  sub toReal { Line 69  sub toReal {
69    return $real;    return $real;
70  }  }
71    
72    sub getLastPart {
73      my $which = shift;
74      my $seperator = shift;
75      $seperator ||= '\/';
76      $which =~ m/^.*$seperator(.+?)$/;
77      return $1;
78    }
79    
80  1;  1;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed