in reply to Python tricks

(There's some duplication between items IX and X, and)
my @r = <STDIN>;
will return whole lines as array element(s). You need
my @r = split ' ', <STDIN>;

Replies are listed 'Best First'.
Re^2: Python tricks
by pme (Monsignor) on Dec 18, 2018 at 15:08 UTC
    You are right, we need the split.