in reply to Re^2: Perl script on windows node
in thread Perl script on windows node
say() is the only feature being used from 5.10, so all you need to do is replace all instances of 'say' with 'print'. To keep the output the same, add a newline character (\n) to the end of each quoted string you are printing out.
EDIT: As pointed out by ww, I should have explicitly stated that along with replacing say with print, the 'use 5.10' line should be removed as well. Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl script on windows node
by ww (Archbishop) on Apr 03, 2012 at 12:40 UTC | |
|
Re^4: Perl script on windows node
by kaka_2 (Sexton) on Apr 03, 2012 at 12:35 UTC | |
|
Re^4: Perl script on windows node
by kaka_2 (Sexton) on Apr 03, 2012 at 13:31 UTC | |
by marto (Cardinal) on Apr 03, 2012 at 15:48 UTC | |
by kaka_2 (Sexton) on Apr 03, 2012 at 16:12 UTC | |
by GrandFather (Saint) on Apr 03, 2012 at 20:25 UTC | |
by cdarke (Prior) on Apr 03, 2012 at 15:40 UTC | |
|
Re^4: Perl script on windows node
by kaka_2 (Sexton) on Apr 03, 2012 at 12:14 UTC | |
by marto (Cardinal) on Apr 03, 2012 at 12:25 UTC | |
by Happy-the-monk (Canon) on Apr 03, 2012 at 12:24 UTC | |
by stevieb (Canon) on Apr 03, 2012 at 12:26 UTC |