in reply to solved: beginners trap: one liner
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');"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: beginners trap: one liner
by footpad (Abbot) on Jan 03, 2020 at 20:02 UTC | |
by ikegami (Pope) on Jan 04, 2020 at 06:09 UTC | |
by footpad (Abbot) on Jan 06, 2020 at 16:13 UTC | |
by ikegami (Pope) on Jan 07, 2020 at 18:26 UTC | |
by pryrt (Monsignor) on Jan 07, 2020 at 18:45 UTC | |
| |
Re^2: beginners trap: one liner
by toohoo (Beadle) on Jan 04, 2020 at 03:45 UTC |