|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^5: Is there a way to compare strings without using an array? (say)by jeffa (Chancellor) |
| on Oct 18, 2011 at 21:44 UTC ( #932248=note: print w/ replies, xml ) | Need Help?? |
|
The reason is because say is not (yet) a built-in function. You have to import the function into your namespace first, hence use feature 'say';
Alternatively, you can just use print, which does not implicitly add the new line for you like say does. You can also add the -l (dash elle) modifier to your "shebang" line which essentially makes print behave like say: Hope this helps! jeffa L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||