While reading the recent article, "Perl One-liners", from The Perl Review; I decided to follow along. Didn't take too long before I realized I couldn't do them on Windows (NT) as written. The command line doesn't like Perl script enclosed in single quotes. For example: perl -e 'print "Hello World!\n"' will get you the error message: "Can't find string terminator "'" anywhere before EOF at -e line 1." Exchanging the single quotes for double quotes results in a blank line being printed. Exchanging the double quotes for single quotes as in: perl -e "print 'Hello World!\n'" almost gets the desired result. The "\n" does not get interpolated, of course. As you can imagine similar problems occurred with the article's other examples.
Question is - How does anyone do substantive one-liners in Windows? Bo _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
