in reply to Re (tilly) 2: Printing the result of calling an instance method
in thread Printing the result of calling an instance method
Oh, you're absolutely right. As I said above, it's very nasty - for all kinds of reasons.
As for the list/scalar context problem, you could do something like:
print "The current date is @{[scalar localtime]}.\n";
But I really wouldn't recommend it :)
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
|
|---|