Alexandre Jaquet said:
Hi I can't find why I'm getting Bad file descriptor when I use :
my $time_start = system "date \"+%H:%M:%S\"";
warn "date \"+%H:%M:%S\""; --> date "+%H:%M:%S"
Unquoted string "date" may clash with future reserved word at - line 2.
String found where operator expected at - line 2, near "date
"+%H:%M:%S""
(Do you need to predeclare date?)
1) Post real code.
2) Even after removing what appears to be your pseudo code for a
comment, I do not get any messages about a "bad file descriptor".
Therefore, your problem lies elswhere. Please post a short *but
complete* program that exhibits this problem. (Have you read the
Posting Guidelines that are posted here twice weekly?)
Paul Lalli