in reply to Re: Some Insights from a Traveler Between Languages
in thread Some Insights from a Traveler Between Languages
ormy ($n) = localtime;
Context is given by the left hand side of an assignment, but its interpretation is done by the right hand side.my $n = (localtime)[-1];
update: also note that the current interpretation of scalar context by a list means that the last element is returned, wich would mean that your list() function would act like:
(1,2,3,4) != list(1,2,3,4);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Some Insights from a Traveler Between Languages
by tlm (Prior) on Apr 23, 2005 at 23:29 UTC | |
by Joost (Canon) on Apr 24, 2005 at 02:05 UTC |