View Single Post
  #9  
Old 08-11-2004, 04:18 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Quote:
Originally Posted by infragoblin
Quote:
D:\Perl\bin>perl -mcpan -e shell

D:\Perl\bin>install IO:Scalar
'install' is not recognized as an internal or external command,
operable program or batch file.

you have to type 'install IO::Scalar '

inside the cpan shell
the prompt should look like this

Code:
cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')

cpan>
cpan>install IO::Scalar
if you cannot get the cpan prompt try restarting, or uninstall and reinstall perl
oh and its IO::Scalar not IO:Scaler
I had the same exact problem as
Quote:
D:\Perl\bin>perl -mcpan -e shell

D:\Perl\bin>install IO:Scalar
'install' is not recognized as an internal or external command,
operable program or batch file.
What the problem is, is MCPAN is CAPTIAL not lowercase. If its not capital you wont get the cpan> shell and the install command wont work.

Good luck.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote