Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: beginners trap: one linerby pryrt (Abbot) |
on Jan 03, 2020 at 18:48 UTC ( [id://11110904]=note: print w/replies, xml ) | Need Help?? |
If you are in linux, you might want to add a newline; for example, perl -le 'print("aaa");' -- adding the -l auto-adds newline; useful for oneliners. (edit: without the newline, the aaa and the next command-line prompt will be next to each other, like aaa[##]Here'sMyCommandLinePrompt:) If you are in windows, single quote ' is not a valid quote mark for the command line, so swap quotes around: perl -le "print('aaa');"
In Section
Seekers of Perl Wisdom
|
|