in reply to $sum += $_ ** 3 for 1..9

$s += $_ for 1 .. 9; say 'Happy ', $s ** 2, ' to you, too!'
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: $sum += $_ ** 3 for 1..9
by LanX (Saint) on Dec 31, 2024 at 18:18 UTC
    Cool and this equivalence is true for any sequence 1..n .

    ( Not very hard to prove :)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery