in reply to Question about list context
If you put warnings on:
where the "constant in void context" is the newline char. The problem is obviously corrected in your second solution (this time without quotes :), because all elements become arguments to the print function.perl -wce 'print ( (split "\t", $line)[0] ), "\n" ;'; __output__ print (...) interpreted as function at -e line 1. Useless use of a constant in void context at -e line 1. -e syntax OK
Flavio (perl -e "print(scalar(reverse('ti.xittelop@oivalf')))")
Don't fool yourself.
|
|---|