Changeset 7507


Ignore:
Timestamp:
2004-05-31T14:50:25+12:00 (20 years ago)
Author:
kjdon
Message:

filename_cat now checks for an empty first path - so don't get an erroneous / on the front anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/util.pm

    r5494 r7507  
    491491
    492492sub filename_cat {
     493    my $first_file = shift(@_);
    493494    my (@filenames) = @_;
     495    #check for non-empty first filename
     496    if ($first_file =~ /\w/) {
     497    unshift(@filenames, $first_file);
     498    }
     499
    494500    my $filename = join("/", @filenames);
    495501
Note: See TracChangeset for help on using the changeset viewer.