in reply to Re: Creating Filenames using variables
in thread Creating Filenames using variables

Zigster that would get you MON.DOC_$date

rass, you can try this... i just did and it works... careful of the trailing  \n on the date...
$mon = "MON.DOC"; @name = split (/\./,$mon); $date = `date`; #(or whatever) $filename = $name[0] . "_" . $date . "." . $name[1];


magnus

Replies are listed 'Best First'.
Re: Re: Re: Creating Filenames using variables
by zigster (Hermit) on Feb 08, 2001 at 16:30 UTC
    Dowt, more hast less speed required on my part next time.. Thanks for the correction you are of course quite correct.
    --

    Zigster
Re: Re: Re: Creating Filenames using variables
by Albannach (Monsignor) on Feb 08, 2001 at 19:35 UTC
    Nice catch magnus (and now you have your own manoeuver ;-), but I just wanted to point out the potential problem of filenames with multiple dots. There are plenty even on this Win32 box.

    --
    I'd like to be able to assign to an luser

      coolbeans... i've never had my own manoeuver before...

      does it come with leather bucket seats you think?

      probably not, but at least it's got Perlmonk conditioning... =)