[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Oneliner problems?



Larry F. Allen-Tonar wrote:
> 
> David,
> 
> Since I don't see the usual helpful replies, I'll chip in an answer:
> 
> In the one-liner dialog window, try typing in:
> 
>     perl -w -e 'print "It truly works.\\n";'
> (             ^ There is an obnoxious complaint if this space is missing  .)
> 
> The 'idea' of one-liners is to be able to type in the same obnoxiously-quoted
> and back-slash-doubled PERL one-line command needed for a UNIX shell
> and have it executed similarly by MacPerl.
> 

But in a Unix shell I would have typed:

perl -w -e 'print "It truly works.\n";'

without the extra backslash before the 'n'.  Why do you say that the
backslashes need to be doubled??  If it's not a bug in MacPerl, it's at
least rather counter-intuitive.  (The above line doesn't give any output at
all when run from the OneLiner dialog.)

Ronald

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch