in reply to Re^2: sending data thru a sub routine
in thread sending data thru a sub routine

Good point: clarification herewith:

Some processing is required; it's definitely not a matter of simply splitting @ARGV, because split expects to work on a string, not an array.

C:\>perl -E "my ($input) = @ARGV; my @input = split / /, $input; for $ +_(@input) {say $_;}" "trez zwei uno" trez zwei uno

parenthesize the $input to stringify the content of @ARGV rather than count its (single here) element(s).

Quibble: AnomalousMonk could improve on this 'clarification' and probably would have done it better the first time.


Come, let us reason together: Spirit of the Monastery

Quis custodiet ipsos custodes. Juvenal, Satires