Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Michael De Tomaso
April 15, 2005, 8:28 am
rate this thread
I installed perl for WIN from ActiveState
This is perl, v5.8.6 built for MSWin32-x86-multi-thread
(with 3 registered patches, see perl -V for more detail)
Copyright 1987-2004, Larry Wall
And I was going to try to test some code from:
Q: let's say I wanted to run a single line of code such as:
print join(':', split(/ */, 'hi there'));
.... should I be able to run if from the command line like:
Q: should produce the line: " produces the output 'h:i:t:h:e:r:e'. " right
after the command right ???
- thanks & take care M.D.
| |_ ___ _ __ ___ __ _ | |_ ___ ___
| __| / _ \ | '_ ` _ \ / _` | | __| / _ \ / _ \
| |_ | (_) | | | | | | | | (_| | | |_ | (_) | | __/
\__| \___/ |_| |_| |_| \__,_| \__| \___/ \___|
- Gunnar Hjalmarsson
April 15, 2005, 10:58 am
Re: Command Line single execution of a line(s) of code
Michael De Tomaso wrote:
Yes, but you are supposed to surround the statement with quotes; in the
case of Windows it must be double-quotes:
perl -e "print join(':', split(/ */, 'hi there'))"