laziness, impatience, and hubris | |
PerlMonks |
Re: About personal functionby kevbot (Vicar) |
on Jul 19, 2018 at 05:16 UTC ( [id://1218801]=note: print w/replies, xml ) | Need Help?? |
Hello dideod.yang,
Your script is not valid perl syntax. I recommend that you take a closer look at some documentation in order to become more familiar with perl syntax and debugging.
Here is a modified version of your script that will print the first element of @x, which is 'A'. It will also print all the elements of @x (joined by commas).
In Section
Seekers of Perl Wisdom
|
|