in reply to Re: Perl Variable Help.
in thread Perl Variable Help.

I think the OP does want the filenames printing on two lines, he just doesn't want newlines inside the filenames (of course).

arvindmarlabs, Perl has faster and similarly named equivalents for many of the Unix®-y commands. You don't need to use backticks for simple stuff like this. You can if you want, but it's better to leave them for interacting with other programs for which you don't have any other convenient interface.

As marto says, shelling out isn't portable across OSes, and it will probably be slower than using Perl's own date function(s) e.g. localtime.

localtime is fairly straightforward, but does require a couple of extra lines of code to get the date into the format you want. If you can install a module from CPAN, DateTime makes date and time handling a lot easier.