Do you know where your variables are? | |
PerlMonks |
Re: Question about ellipsis statement '...'by shmem (Chancellor) |
on Mar 01, 2021 at 14:58 UTC ( [id://11128952]=note: print w/replies, xml ) | Need Help?? |
There are two uses for '...' - as:
And so... I don't understand why '...; print 1;' exits after ellipsis and not proceeds to print (v5.28). Can someone explain? The sequence ...; print 1; does not proceed to print, because it dies before the print, just at the ...; I understand why 'print ...' breaks: because it makes syntax error. Yes. Because it is not a statement on its own, it is interpreted as the infix range operator, which lacks arguments - so "syntax error".
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|