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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -