rsFalse has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I tried to use examples of ellipsis '...' provided by documentation https://perldoc.perl.org/perlsyn#The-Ellipsis-Statement. But I found description not clearly written. And I'm not sure if I got correct behavior of '...', because it is "documented" in a way (cite): "These examples show how the ellipsis works:". But there are no outputs of examples provided.
I don't understand why '...; print 1;' exits after ellipsis and not proceeds to print (v5.28). Can someone explain?
I understand why 'print ...' breaks: because it makes syntax error.
I tried to use examples of ellipsis '...' provided by documentation https://perldoc.perl.org/perlsyn#The-Ellipsis-Statement. But I found description not clearly written. And I'm not sure if I got correct behavior of '...', because it is "documented" in a way (cite): "These examples show how the ellipsis works:". But there are no outputs of examples provided.
I don't understand why '...; print 1;' exits after ellipsis and not proceeds to print (v5.28). Can someone explain?
I understand why 'print ...' breaks: because it makes syntax error.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Question about ellipsis statement '...'
by Corion (Patriarch) on Mar 01, 2021 at 10:36 UTC | |
by rsFalse (Chaplain) on Mar 01, 2021 at 11:34 UTC | |
by BillKSmith (Monsignor) on Mar 01, 2021 at 12:26 UTC | |
Re: Question about ellipsis statement '...'
by shmem (Chancellor) on Mar 01, 2021 at 14:58 UTC | |
Re: Question about ellipsis statement '...'
by GrandFather (Saint) on Mar 01, 2021 at 20:06 UTC | |
Re: Question about ellipsis statement '...' (ToDo marks)
by LanX (Saint) on Mar 01, 2021 at 20:26 UTC |
Back to
Seekers of Perl Wisdom