PERL Tutorial Example: Use of localtime function(datetime) in PERL
PERL Example Base Tutorial: Use of localtime function(datetime) in PERL
create a file named "perl-tutorial-example-function-datetime.pl" then copy and paste the below code:
$CurrentDateTime = localtime; print "\nUse of 'localtime' function in PERL\n"; print "\n\nToday is a beautiful day & it's :$CurrentDateTime.\n\n";
PERL Example Base Tutorial: Use of localtime function(datetime) in PERL description
Now run the program (perl-tutorial-example-function-datetime.pl) from command prompt and get the result as desired:

No comments:
Post a Comment
leave your comments here..