in reply to one liner error
Further to Athanasius's reply: If you don't like using quotes on your command line (and who does?), you can, in certain limited cases, avoid them:
The trick is that the command(s) must not contain whitespace. Time and effort spent golfing is never wasted!c:\@Work\Perl\monks>perl -wMstrict -MCwd -le my$str=getcwd;print(qq{it +\x20is\x20now\x20$str}) it is now c:/@Work/Perl/monks
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: one liner error
by Fletch (Bishop) on May 27, 2020 at 13:55 UTC | |
by AnomalousMonk (Archbishop) on May 27, 2020 at 15:22 UTC | |
by Fletch (Bishop) on May 27, 2020 at 15:55 UTC | |
by Anonymous Monk on May 27, 2020 at 17:49 UTC | |
by perlfan (Parson) on May 28, 2020 at 07:05 UTC | |
|
Re^2: one liner error
by toohoo (Beadle) on May 28, 2020 at 05:45 UTC |