Re: Error in command line

From: A. Sinan Unur (1usa_at_llenroc.ude.invalid)
Date: 01/30/05


Date: Sun, 30 Jan 2005 16:54:27 GMT

rs.pai@sbi.co.in (Rajendra Pai) wrote in news:33b0685e.0501300304.3ad5ec53
@posting.google.com:

> Hi,
>
> I have ActivePerl installed in a Windows XP Machine.
>
> When I type the following line at the command prompt (this is just an
> example):
> perl -le 'print "PRIME" if (1 x shift) !~ /^(11+)\1+$/' 19
> the response I get is:
> Can't find string terminator "'" anywhere before EOF at -e line 1.

While I find that the cmd.exe shell is fairly workable, its handling of
various quotation marks leaves a lot to be desired.

My brain has become accustomed to converting the above to:

perl -le "print q{PRIME} if (1 x shift) !~ /^(11+)\1+$/" 19

In this particular case, you cold have also done:

perl -le "print -PRIME if (1 x shift) !~ /^(11+)\1+$/" 19

if you don't mind the leading dash.

On the other hand, you are just using a one liner on the command line
 
Sinan



Relevant Pages

  • RE: re-setting boot partition
    ... Description of the Windows 2000 Recovery Console ... For a Microsoft Windows XP version of this article, ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.setup_upgrade)
  • RE: Win2000 Upgrade to SP3 Express Setup error.
    ... Start your computer with the Windows Setup floppy disks, ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ... you cannot copy a file from the local hard disk to a floppy disk. ...
    (microsoft.public.win2000.setup_upgrade)
  • RE: Locating corrupt driver
    ... This article describes the functionality and limitations of the Windows ... Create and format partitions on drives. ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.applications)
  • >>>> NET SEND <<<<
    ... Windows Xp Net Send ... Net Send Command For Mac ... Net Send Syntax Dos ... Dos Net Send Commands ...
    (sci.lang.japan)
  • Re: DOS Box Keyboard problem
    ... mode con codepage select=860 ... This is copied from a command prompt, I did not type a single character, all ... into) Command Prompt windows with a mouse. ... I get 437 from command chcp and cmd chcp. ...
    (microsoft.public.windowsxp.configuration_manage)