RE: PPM working again

2001-03-07 Thread Robjohns, Ashley - COMPAQ

Yes, quite correct.  Is now working.

-Original Message-
From: Bennett Haselton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 6 March 2001 7:27 PM
To: [EMAIL PROTECTED]
Subject: PPM working again


I can now type "search" at the PPM prompt and get a list of the packages at
ppm.activestate.com -- it looks like they've fixed the server error.  This
was probably related to your problem below as well.

-Bennett

At 01:29 PM 3/6/01 +1030, Robjohns, Ashley - COMPAQ wrote:
>Hello All,
>
>Any ideas as to why I'm receiving the error below?
>
>---cut---
>PPM> verify
>HTTP POST failed: 500 (Server Error), in SOAP method call. Content of
>response:
>ErrorThe specified procedure could
>not b
>e found.  at C:/Perl/site/lib/PPM/SOAPClient.pm line 222
>
>C:\Temp>
>---endcut---
>
>
>Line 221-223 in C:/Perl/site/lib/PPM/SOAPClient.pm reads as follows.  I
have
>checked the function 'send_receive' which I assume is at fault, and it
>exists in SOAP::Transport::HTTP::Client() which is included at the start of
>C:/Perl/site/lib/PPM/SOAPClient.pm.
>
>my $soap   = new SOAP::Transport::HTTP::Client();
>my $result = $soap->send_receive(
>$self->{'_server'},
>
>
>Regards,
>
>Ashley Robjohns
>
>___
>Perl-Win32-Users mailing list
>[EMAIL PROTECTED]
>http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
>
>

[EMAIL PROTECTED] http://www.peacefire.org
(425) 649 9024
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Re: Format Integers

2001-03-07 Thread $Bill Luebkert

Roee Rubin wrote:
> 
> Hello,
> 
> A simple question.
> 
> I am multiplying two numbers and the result is a dollar figure. Therefore,
> there must be two numbers after the decimal (45.00 and not 45 - or - 45.50
> and not 45.5)
> 
> I can do this with Regex , but I assume there is some type of a format
> command.
> 
> Any help would be appreciated.

Perlfunc man page:  (s)printf will do what you want.

-- 
  ,-/-  __  _  _ $Bill Luebkert   ICQ=14439852
 (_/   /  )// //   DBE Collectibles   http://www.todbe.com/
  / ) /--<  o // //  Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_http://www.freeyellow.com/members/dbecoll/
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



RE: Format Integers

2001-03-07 Thread Peter Guzis

look into printf and sprintf:
printf "%.2f", $number; # prints floating-point number to two decimal places

Peter Guzis
Web Administrator, Sr.
ENCAD, Inc.
email: [EMAIL PROTECTED]
www.encad.com

-Original Message-
From: Roee Rubin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 4:15 PM
To: Perl-Win32-Users
Subject: Format Integers


Hello,

A simple question.

I am multiplying two numbers and the result is a dollar figure. Therefore,
there must be two numbers after the decimal (45.00 and not 45 - or - 45.50
and not 45.5)

I can do this with Regex , but I assume there is some type of a format
command.

Any help would be appreciated.

Roee Rubin
Irubin Consulting
[EMAIL PROTECTED]
Phone 310.717.3777
===
Check out the new http://www.irubin.com !!!

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



PPM upgrade status

2001-03-07 Thread Smith, Eric - WPAFB/YSXOI

I held off on upgrading to AP 6xx on production machines, due to some
missing modules, such as Image::Magick, but it appears that Image::Magick is
now supported.  Is this the case?

Are there any other issues or missing modules with 623?  Looks like the
modules I use most are supported - CGI, DBI, LWP, Tk, etc.  I don't think
Template Toolkit is available via PPM yet?

Any tips on the upgrade which would make upgrading perl and all installed
modules on a machine easier?

- Eric
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Re: Net::FTP please test

2001-03-07 Thread Greg Wardawy



>>> "Marcus" <[EMAIL PROTECTED]> 03/06/01 06:30PM >>>

I have a bit of a puzzle here. Below is a very short, totally basic
Net::FTP script. All it does is connect and then disconnect.
_I_ get the following error when it is compiled with Perl2Exe version
4.03, but no error from the Perl interpreter:  Bad file descriptor at
test_netftp.pl line 11.

However, the Perl2Exe support person gets this error _also_ from the
Perl interpreter. Could some people give it a quick test running
ActivePerl 5.6 and let me know if they get any errors?

Is there anything in this script that needs to be changed from the
point of view of Net::FTP?

--
use Net::FTP;
use strict;
use warnings;

$servername = 'x';
$login_id = 'x'; 
$login_password = '';

my $ftp = Net::FTP->new($servername) or print "I couldn't find the FTP
server. Are you connected to the Internet?";

$ftp->login($login_id, $login_password) or print "I couldn't find the
FTP server. Are you connected to the Internet?";

$ftp->quit or die $!;

print "\nDisconnected";
--

Thanks,

Marcus Friedlaender


Hi Marcus,
I'm getting a "Bad file descriptor" when it's compiled with Perl2exe, the freestanding 
app from PerlApp doesn't work at all, no errors when it's compiled with PerlApp 
without -f. Im 'running Perl5.6 Build623, libnet 1.02
Greg
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED] 
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Win32::OLE::Lite error, HELP, please

2001-03-07 Thread Ember Normand

Hi,
I was hoping somebody out there might have some insight into this problem.
We are using Win32::OLE to instantiate some COM objects.  We are using
PerlEx on IIS5/Win2K.  Things seem to be working for us, but we are getting
some errors in our PerlEx error logs:

"retrying default method at d:/Perl/site/lib/Win32/OLE/Lite.pm line 156"

I'm afraid that this may propagate itself as an error to our users, because
we do not always get this in the error log.

I looked at Lite.pm and this is a warning when the autoload fails and then
retries.  But I need to know why is this happening?  Am I doing something
wrong in instantiating the COM objects that is causing this error?  Is this
normal?

Thank you!
Ember
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



RE: Perl with FTP

2001-03-07 Thread Trevor Joerges
Title: RE: Perl with FTP





The Net::FTP module is part of the libnet module bundle. If you are using the latest version of ActivePerl it should have been installed by default. If you are using an older version or Perl you may have to install it manually. Using ppm try typing "ppm install libnet" from a command prompt.

Trevor J. Joerges


$_=q;$TTnzyUUifyIIz!;;s;z;xdl;g;
y;x;b;;y;B-x;A-w;s;y;y; ;;print;




-Original Message-
From: Fernando Monteiro Duarte [mailto:[EMAIL PROTECTED]]
Sent: March 7, 2001 02:24 PM
To: perl-win32-users
Subject: Perl with FTP



   Hi,


   Does anybody knows if I can use FTP with Perl, and have a log of the
connection.


   Thanks in advance,
   Fernando Monteiro Duarte


___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users





RE: Install PM

2001-03-07 Thread Ember Normand

You can use lib to include other perl modules.  I'm currently using IIS5 on
Win2k, with PerlEx.  I've done similar things on Unix with Apache.  You may
need to tweek this a little depending upon your platfor.

Say your .cgi's are all located in, /cgi-bin/, and your modules are located
in /cgi-bin/mylib/, and you want to access, /cgi-bin/mylib/MyModule.pm.

Then in the top of your cgi, with all of your other use statements, put:
use lib 'mylib';
use MyModule;

The "use lib 'mylib';" adds the mylib directory to your @INC.

If we happen to have a cgi in a different branch of the directory structure,
we can still get to our library modules.  For example:  /cgi-bin/mylib/
contains all our modules; /other-cgis/ contains some separate cgis.  To get
to our modules from /other-cgis/ using lib:
use lib '../cgi-bin/mylib/';
use MyModule;

Hope this helps.
Good luck,
Ember

-Original Message-
From: Christopher Hahn [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 6:36 PM
To: 'Mauricio Lairet P.'; Perl Users Mailing List
Subject: RE: Install PM



Hello,

I have also dealt with providing my own
support, beyond what my ISP was giving me
to do my webiste with.

...and I used the -I command line option of Perl to
add to @INC.

This works in the #! line of a CGI script, as in:
#!/usr/bin/perl -I/web/king/chahn/cgi-bin/perl
use Astro::MoonPhase;  <---My ISP did not have this ready.

(I needed to use a SSI to stuff the phase of the moon
into a clock website)

Good luck,

Christopher

> -Original Message-
> From: Mauricio Lairet P. [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 06, 2001 3:01 PM
> To: Perl Users Mailing List
> Subject: Install PM
> 
> 
> Hi!
> 
> First of all I wanted to thak all who helped me with my 
> Questions about SQL
> and ODBC.
> 
> Now, Im thinking of using DBI module to work with databases 
> intead of using
> Win32::ODBC but my hosting provider has only the typical 
> extensions of Perl
> installed and they are not helping so much. So I wanted to 
> know if there is
> a way to tell a script that the PM file is in other directory 
> so it will not
> look for it in the standard Perl directory. I want ot know 
> this not only for
> the mentioned DBI module but also to use any module I'd like 
> to use without
> asking the hosting provider to install it for me.
> 
> I'd really appreciate if you could help me here.
> 
> Thank you so much!
> 
> ___
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
> 
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Perl with FTP

2001-03-07 Thread Fernando Monteiro Duarte

   Hi,

   Does anybody knows if I can use FTP with Perl, and have a log of the
connection.

   Thanks in advance,
   Fernando Monteiro Duarte

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



RE: strict frustration

2001-03-07 Thread Steven Wadding

At 04:54 PM 3/6/01 -0600, Michael Marziani wrote:
>Yeah, I think
>
> >our( );
>
>is now the standard.
>
>-Mike

Was part of the question along the way about how to pass variables to a 
script called with "do" while using "use strict"?  I had done this by 
naming the variable $main::varname, because I got it to work that way.  As 
a test, I tried "vars", which worked.  Then I tried "our".  If the called 
script also had "use strict" in it, then the variable had to be declared 
with "our" in both scripts, but it worked.

Steve

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



RE: viewing POD

2001-03-07 Thread Nikola Knezevic

>> >AS Perl ships with POD in HTML format. PPM installs POD in HTML
>> >format.
>> Yes it does. But, it can't convert allready installed PODs to HTML
>> (installed without PPM).

>ok then, last suggestion (the brute force method): instead of
installing
>modules with nmake install, create the html pod (pod2html), make a
>blib/html/lib/site (site/lib for 5.6 builds) dir, move the html files
there
>and build a PPM distro of the module then install that (or do a
minimal
>pod2html and figure out how PPM gets that into the html reference).

And that I'll do (the last part). I'll write what I discovered and
managed to do...

t

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Re: Install PM

2001-03-07 Thread SCOTT_SISSON


Instead of worrying about what is & is not installed you can try using
Perlapp to create freestanding exes.

Just a thought



   
   
"Mauricio Lairet P."   
   
<[EMAIL PROTECTED]>To: "Perl Users 
Mailing List"
Sent by: 
<[EMAIL PROTECTED]>  
[EMAIL PROTECTED]cc:   
   
eState.com   Subject: Install 
PM  
   
   
   
   
03/06/01 06:01 PM  
   
   
   
   
   


Hi!

First of all I wanted to thak all who helped me with my Questions about SQL
and ODBC.

Now, Im thinking of using DBI module to work with databases intead of using
Win32::ODBC but my hosting provider has only the typical extensions of Perl
installed and they are not helping so much. So I wanted to know if there is
a way to tell a script that the PM file is in other directory so it will
not
look for it in the standard Perl directory. I want ot know this not only
for
the mentioned DBI module but also to use any module I'd like to use without
asking the hosting provider to install it for me.

I'd really appreciate if you could help me here.

Thank you so much!

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users




___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



RE: viewing POD

2001-03-07 Thread John Cope


> -Original Message-
> From: Nikola Knezevic [mailto:[EMAIL PROTECTED]]
>
> >AS Perl ships with POD in HTML format. PPM installs POD in HTML
> >format.
> Yes it does. But, it can't convert allready installed PODs to HTML
> (installed without PPM).

ok then, last suggestion (the brute force method): instead of installing
modules with nmake install, create the html pod (pod2html), make a
blib/html/lib/site (site/lib for 5.6 builds) dir, move the html files there
and build a PPM distro of the module then install that (or do a minimal
pod2html and figure out how PPM gets that into the html reference).

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



RE: viewing POD

2001-03-07 Thread Nikola Knezevic

>> I think that I'll need to fire up VC++ and write something that will
do
>> what I need.
>overkill. Think Perl (you can't possibly be the first to want this).

Nope. What I need cannot be done in perl (well, it can, but I have to
use Tk and similar).
And I'm familiar with MFC and C++, so...

>> Quick question follows:
>> How to do this > order perldoc not to output in plaintext, rather in
>> HTML??
>> I'll then just set PAGER to opera, and everything is OK... (for
now).

>AS Perl ships with POD in HTML format. PPM installs POD in HTML
format.
Yes it does. But, it can't convert allready installed PODs to HTML
(installed without PPM).

>perldoc perldoc | perl -MPod::Html -e
>"pod2html(\"--outfile=$ENV{TEMP}/pod.html\");system \"Start
>$ENV{TEMP}/pod.html\";unlink \"$ENV{TEMP}./pod.html\";"

Nice, but it doesn't work on Win95 command prompt... w/ or w/o DosKey.



___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Perl, Excel and missing SaveAs

2001-03-07 Thread Petr Smejkal

Have you ever seen this:

=
OLE exception from "Microsoft Excel":

Unable to get the SaveAs property of the Workbook class

Win32::OLE(0.15) error 0x800a03ec
in METHOD/PROPERTYGET "SaveAs"
=

The following code is working fine, but I recently received a file damaged
by virus infection and something strange happens. I'm sure the file can be
opened and saved as xlText in Excel manually - I've tested it manytimes. I'm
sure the file is opened by my code (I can read the values in the file), but
I'm UNABLE to save the file.

I've tested both types of invoking SaveAs method

$book->Invoke('SaveAs', { Filename => File::Spec->rel2abs("temp.txt"),
FileFormat => xlText, CreateBackup => 0 });
$book->SaveAs( { Filename => File::Spec->rel2abs("temp.txt"), FileFormat
=> xlText, CreateBackup => 0 });

both are working fine, but only with files that didn't get touched with
virus.

The files was successfully cured by NAV2001 (latest virus database) the
virus name "X97M.Jini.A1".

Workaround: open damaged file in Excel, select all, create new file, paste
and use the new file.
DO YOU KNOW ANOTHER SOLUTION HOW TO HANDLE FILES CURED AFTER VIRUS ATTACK?

use Win32::OLE;
use Win32::OLE::Const 'Microsoft Excel';
use File::Spec;

$excel = Win32::OLE->new('Excel.Application', 'Quit')
or die "Oops, cannot start Excel";
$excel->{Visible} = 1;

$book = $excel->Workbooks->Open({
  UpdateLinks => 0,
  FileName => File::Spec->rel2abs( 'LW.Gea.LPP.xls' ),
  ReadOnly => 1 });

print ( Win32::OLE::LastError() ) if Win32::OLE::LastError();

$book->Invoke('SaveAs', { Filename => File::Spec->rel2abs("temp.txt"),
FileFormat => xlText, CreateBackup => 0 });

print "\n";
print (Win32::OLE::LastError() ) if Win32::OLE::LastError();
print "\n\n";

$book->Close({ SaveChanges => 0 });
print ( Win32::OLE::LastError() ) if Win32::OLE::LastError();


-- Petr Smejkal

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users