in reply to Date subroutine

How to use the date subroutine.

Is that a question? If so, then it's missing a question mark. However the answer is "just like thus:"

my @output=date(@args);

What should be in @args and what should end up in @output depends on the actual date sub.

How to use the date subroutine and pass the value in other file

Another question? Still missing a question mark. However the answer is "just like thus:"

print $otherfile date(@args);