develooper Front page | perl.perl6.users | Postings from October 2018

<> thank you

Thread Next
From:
Todd Chester
Date:
October 5, 2018 06:30
Subject:
<> thank you
Message ID:
e7832e5f-6f97-75fa-c928-d494b915490b@zoho.com
Hi All,

I went to reply to someone, I think it was Brandon for sending me
an eMail to my private address and the stinker disappeared!

Anyway whoever sent me

     $ p6 'say <the quick brown>[0,2];'
     (the brown)

I was trying to figure out why this bombed:

     $ p6 ' say "a b c d"[3,1];'
     Index out of range. Is: 3, should be in 0..0
     in block <unit> at -e line 1

And you beat me to the punch!  It was the <>.

Thank you!

-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About