Hey, Guys,
I am writing a simple daily logger script and I want to get the system date to use as a tag in the file. I know this can be done, but I am doing something wrong (I am an occasional perl programmer).
So, what I want is execute the system date function (UNIX date) and get the returned data shoved into a variable. Something like:
$sillyVarName = system(date);
When I try this though the variable is empty. Can some one tell me what I am doing wrong. BTW I tried system('date')... all to no avail.
Any help would be appreciated.
Thanks,
Dale
I am writing a simple daily logger script and I want to get the system date to use as a tag in the file. I know this can be done, but I am doing something wrong (I am an occasional perl programmer).
So, what I want is execute the system date function (UNIX date) and get the returned data shoved into a variable. Something like:
$sillyVarName = system(date);
When I try this though the variable is empty. Can some one tell me what I am doing wrong. BTW I tried system('date')... all to no avail.
Any help would be appreciated.
Thanks,
Dale