Command linux "Date" into perl script -
i must implement perl script makes use inside linux command 'date' use current date reference date identification of events stored in file. please. know function localtime() don't need explicitly linux command date.
this not way current time in perl, answer narrowly defined question above. here working:
$ perl date-test <<mon aug 31 06:52:08 pdt 2015>>
here code:
$ cat date-test #!/usr/bin/perl use strict; use warnings; $static_date = `date`; chomp($static_date); print "<<$static_date>>\n";
Comments
Post a Comment