Ignore:
Timestamp:
2001-10-12T11:05:43+13:00 (23 years ago)
Author:
sjboddie
Message:

Got ZIPPlug working under under windows

File:
1 edited

Legend:

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

    r2516 r2795  
    475475
    476476sub get_tmp_filename {
    477     my $tmpdir = "$ENV{'GSDLHOME'}/tmp";
     477    my $tmpdir = filename_cat($ENV{'GSDLHOME'}, "tmp");
    478478    &mk_all_dir ($tmpdir) unless -e $tmpdir;
    479479
    480480    my $count = 1000;
    481481    my $rand = int(rand $count);
    482     while (-e "$tmpdir/F$rand") {
     482    while (-e &filename_cat($tmpdir, "F$rand")) {
    483483    $rand = int(rand $count);
    484484    $count++;
    485485    }
    486486
    487     return "$tmpdir/F$rand";
     487    return filename_cat($tmpdir, "F$rand");
    488488}
    489489
Note: See TracChangeset for help on using the changeset viewer.