i just wrote this lines
#!/usr/bin/perl -w
use warnings;
my $dnow = `date`;
my $tnow = `time`;
print "$dnow, $tnow";
and i was waitting to get the date and the time when i run it, but the thing is that the program waits for me to press 'return' button two times and then it gives me the date and the time like this
The current date is: Fri 12/17/2004
Enter the new date: (mm-dd-yy) , The current time is: 9:02:45.20
Enter the new time:
C:\Documents and Settings\Pengo\My Documents\Perl Code>
what did i do wrong?
#!/usr/bin/perl -w
use warnings;
my $dnow = `date`;
my $tnow = `time`;
print "$dnow, $tnow";
and i was waitting to get the date and the time when i run it, but the thing is that the program waits for me to press 'return' button two times and then it gives me the date and the time like this
The current date is: Fri 12/17/2004
Enter the new date: (mm-dd-yy) , The current time is: 9:02:45.20
Enter the new time:
C:\Documents and Settings\Pengo\My Documents\Perl Code>
what did i do wrong?