On Mon, 27 Jan 2003 17:53:23 -0600
"Dan Muey" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Here's what I've tried ...
> >
> > If I do this :
> >
> > #!/usr/bin/perl
> >
> > use lib qw(/home/dmuey/perlmod/Net-SMTP-Multipart-1.5);
> > use Multipart;
> >
> > It gives me :
> >
> > Can't modify subroutine entry in scalar assignment at
> > /home/dmuey/perlmod/Net-SMTP-Multipart-1.5/Multipart.pm line
> > 30, near ");" BEGIN failed--compilation aborted at ./test.pl line 4.
> >
> > Seems to be related to the initial install problem no?
> > Line 30 in that file is :
> > our $VERSION = sprintf("%d.%d", q$Revision: 1.5 $ =~
> > /(\d+)\.(\d+)/);^M
> >
> > Notice that ^M? that's all over the file. I did
> > perl -e '@f = `cat Multipart.pm`;foreach $l(@f) { $l =~
> > s/\^M//g; print $l; }' > Multipart2.pm
>
> Actually that din't remove th ^M. It did from the screen output but when it wrote it
>bqck into the file #2 it was stil there. Could that be the pronlem? If so how can I
>remove the ^M / fix it?
try this;
perl -pi.bak -e 's#\r##gi' Multipart.pm
this should remove all the ^M chars and keep the original file as Multipart.pm.bak
> >
> > And modified my test script to use the #2 version and that
> > gave me the same thing.
> >
> > Any ideas would be most greatly appreciated. Thanks!
> >
> > Dan
> > >
> > >
> > > No takers eh, then
> > > How would I go about using just the .pm file instead of the
> > > installed module with the example at the link below?
> > >
> > > require "./Mulitpart.pm";
> > >
> > > sub import {
> > > ???/
> > > }
> > >
> > > import; # ???
> > >
> > > Thanks
> > >
> > > Dan
> > >
> > > >
> > > > Hello List,
> > > >
> > > > If any one could shed some light on what I'm missing/what
> > the errors
> > > > mean I'd sure appreciate it!
> > > >
> > > > I'm trying to install the Net::SMTP::Multipart Module
> > > >
> > > http://search.cpan.org/author/DROBERTS/Net-SMTP-Multipart-1.5/
> > Multipart.pm
> >
> >
> > I've installed several modules today but I can't seem to get
> > past this one. It doen't generate the makefile so I can't go
> > past perl Makefile.PM
> >
> > doing perl -MCPAN version fails also.
> >
> > I am doing this as root
> > I've done perl -e 'use Module::Name;' on ever required module
> > listed inthe url above and all is well. Here is what happens
> > when I do perl Makefile.PL ::
> >
> > # perl Makefile.PL
> > Checking if your kit is complete...
> > Looks good
> > 'HTMLLIBPODS' is not a known MakeMaker parameter name.
> > Could not eval '
> > package ExtUtils::MakeMaker::_version;
> > no strict;
> >
> > local $VERSION;
> > $VERSION=undef; do {
> > our $VERSION = sprintf("%d.%d", q$Revision:
> > 1.4 $ =~ /(\d+)\.(\d+)/);
> > }; $VERSION
> > ' in Multipart.pm: Can't modify subroutine entry in
> > scalar assignment at (eval 15) line 7, at EOF # ls
> > Changes MANIFEST Makefile.PL Multipart.pm
> > # make
> > make: no target to make.
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]