in reply to Re: Creating filenames
in thread Creating filenames

I'd write the last statement as:
$filename = join "-", $year, $mon, @words; $filename .= ".html";

Replies are listed 'Best First'.
Re^3: Creating filenames
by roboticus (Chancellor) on Apr 02, 2012 at 23:15 UTC

    JavaFan:

    Yes, that's much cleaner than mine.

    ...roboticus

    When your only tool is join, all problems become a matter of selecting the proper delimiter.