Nkuipers <[EMAIL PROTECTED]> wrote: > > or something along those lines. in any case I have been under the > impression that calls to the system are more appropriately made like > this: > > system "date"; > > than this: > > `date` > > though I can't remember what gave me that impression. =) >
Backticks return the output of the external program. my $date = `date`; system() ignores the external program's output and returns the it's exit status instead. system("rm $file") == 0 or die "message: ", $?>>8; So choose between them based on what you want from the child process. But really, use unlink() and localtime(). Perl can *crush* /bin ;) -- Steve perldoc -qa.j | perl -lpe '($_)=m("(.*)")' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]