Changeset 15003 for gsdl/trunk/perllib/util.pm
- Timestamp:
- 2008-02-22T11:29:52+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/util.pm
r14926 r15003 703 703 704 704 705 sub get_dirsep_tail { 706 my ($filename) = @_; 707 708 # returns last part of directory or filename 709 # On unix e.g. a/b.d => b.d 710 # a/b/c => c 711 712 my $dirsep = get_dirsep(); 713 714 my ($tail) = ($filename =~ m/^(?:.*?$dirsep)?(.*?)$/); 715 716 return $tail; 717 } 718 719 705 720 # if this is running on windows we want binaries to end in 706 721 # .exe, otherwise they don't have to end in any extension
Note:
See TracChangeset
for help on using the changeset viewer.