R
Ronald Fischer
Consider a call to, say, localtime, where I only need the current month:
my ($a, $b, $c, $d, $month) = localtime time,
Here I had to invent names ($a...$d) for the first four fields. Is it possible
in Perl to have kind of an "anonymous" variable as a placeholder for those
fields, similar to the '_' variable in Prolog?
I darkly remember to have read about such a feature introduced with Perl 5.6,
but I can't find out how to do it.
Ronald
my ($a, $b, $c, $d, $month) = localtime time,
Here I had to invent names ($a...$d) for the first four fields. Is it possible
in Perl to have kind of an "anonymous" variable as a placeholder for those
fields, similar to the '_' variable in Prolog?
I darkly remember to have read about such a feature introduced with Perl 5.6,
but I can't find out how to do it.
Ronald