>>>>> ""Budi" == "Budi Milis" <[EMAIL PROTECTED]> writes:
"Budi> On 9/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Consider this: >> my $arg = @ARGV ? shift @ARGV : <STDIN>; >> "Budi> Works as I expected, many thanks. "Budi> However, my previous code was: "Budi> my $time_in = $ARG[0] || <STDIN>; "Budi> and it doesn't work, why and whats the different with yours? Perhaps ARG is not ARGV? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>