Re: Error in command line

From: Bill Smith (wksmith_at_optonline.net)
Date: 01/30/05


Date: Sun, 30 Jan 2005 11:35:13 -0500


"Rajendra Pai" <rs.pai@sbi.co.in> wrote in message
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

   perl -le "print qq(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.
>
> (I am getting similar error messages for 'perl -lane' type of commands
> also. The example shown above is taken from a tutorial)
>
> I am not able to figure out what is wrong. I have tried doing both web
> and group searches in google. Please help me. I am a newbie and maybe
> missing something very obvious.

Windows still requires DOS syntax in command lines.
You must use double quotes around parameters with
special characters. This prevents the use of
double quotes in perl command line commands.
In this case, single quotes around 'PRIME' would
work, but it is a good idea to use the q family
of operators within commands on the command line
because they will never be interpreted
by windows.

Bill



Relevant Pages

  • Release : ComLog 1.0, a WIN32 command prompt logger
    ... a WIN32 command prompt logger ... DOS sessions on Windows NT/2K (should also work on XP, ... This tool can be used by administrator to keep a history of commands ... typed in the DOS command prompt and the associated output, ...
    (Focus-IDS)
  • [Full-Disclosure] Release : ComLog 1.0, a WIN32 command prompt logger
    ... a WIN32 command prompt logger ... DOS sessions on Windows NT/2K (should also work on XP, ... This tool can be used by administrator to keep a history of commands ... typed in the DOS command prompt and the associated output, ...
    (Full-Disclosure)
  • RE: blues screen on loading windows XP
    ... the installation disk, insert it into your cd-rom and restart your computer, ... it will take you to another black screen with a command prompt. ... Boot your problem computer with this CD, open a Command Prompt window, ... but Windows did not start successfully. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Error 0x8007000B
    ... This problem started when I did a reinstall of Windows XP SP2 and then ... At the Command Prompt, type in the following commands pressing Enter ... Error message when you use the Windows Update or Microsoft Update Web ...
    (microsoft.public.windowsupdate)
  • 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)