Uri Guttman <[email protected]> writes: > On 7/4/19 2:41 PM, Mike Small wrote: >> A co-worker was trying to take some of the elements from gmtime's return >> value. He did something like the following: >> >> $ perl -E'$,="\t";say gmtime[1..5]' > > that is calling gmtime with the argument of [1..5] which is an > arrayref. so the arg to gmtime is some large address number. it is > then parsed as the timestamp and broken out. garbage in, garbage out!
Thanks Uri! That makes perfect sense now that I see it explained. -- Mike Small [email protected] -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
