Re: use lib failing on IIs
On 06/06/2002 22:24:36 perl-win32-users-admin wrote: Group, I got all my stuff run on my local box with perl/apache/mysql and then I went to move everything to the main IIs server. However. when I ran my scripts that worked before in the same directory structure on my local box I got the following: Can't locate STDLIB.pm in @INC (@INC contains: ../ C:/Perl/lib C:/Perl/site/lib .) at D:\web\cgi-bin\scripts\admin\admin.pl line 35. BEGIN failed--compilation aborted at D:\web\cgi-bin\scripts\admin\admin.pl line 35. my script looks like this: [snip Perl code including a use STDLIB] It sounds as if STDLIB.pm was not installed on the IIS box, only the local box. Does it actually exist in those directories listed by @INC ? P.S. Please don't CC me, I'm on the list. -- Csaba Ráduly, Software Engineer Sophos Anti-Virus email: [EMAIL PROTECTED]http://www.sophos.com US Support: +1 888 SOPHOS 9 UK Support: +44 1235 559933 ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: use lib failing on IIs
Can't locate STDLIB.pm in @INC (@INC contains: ../ C:/Perl/lib C:/Perl/site/lib .) at D:\web\cgi-bin\scripts\admin\admin.pl line 35. BEGIN failed--compilation aborted at D:\web\cgi-bin\scripts\admin\admin.pl line 35. If 'STDLIB.pm' is indeed located in 'D:\web\cgi-bin\scripts\' (or in the same folder as the script) then you probably need to find out what perl thinks is the cwd. It may be different to what you (and I) expect. Can IIS affect that ? ... I dunno. use Cwd; my $cwd = getcwd(); print $cwd; Another option might be to specify the absolute path to 'STDLIB.pm' in the 'use lib()'. Cheers, Rob ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Newton Raphson's or Bisection Interpolation in perl
Hi, Does anybody know of a module that helps in interpolation using Newton Raphson's method or Bisection method in Perl. Parvez ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: use lib failing on IIs
Can't locate STDLIB.pm in @INC (@INC contains: ../ C:/Perl/lib C:/Perl/site/lib .) at D:\web\cgi-bin\scripts\admin\admin.pl line 35. BEGIN failed--compilation aborted at D:\web\cgi-bin\scripts\admin\admin.pl line 35. If 'STDLIB.pm' is indeed located in 'D:\web\cgi-bin\scripts\' (or in the same folder as the script) then you probably need to find out what perl thinks is the cwd. It may be different to what you (and I) expect. Can IIS affect that ? ... I dunno. CGI scripts run on IIS usually end up with a working directory of c:\winnt\system32. Hard to believe MS could be so stupid, but little surprises me about them any more. There's a metabase setting you can tweak (something about spawning new consoles??), if I remember correctly, which will remedy the situation. It might even be documented somewhere in the MS Knowledge Base, or you could search Google Groups. I had to do it several years ago and it seemed to work. Otherwise, just add this to your script: use lib 'd:\known\path\to\your\CGIScript\'; and it should work. jpt ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Newton Raphson's or Bisection Interpolation in perl
From: parvez [mailto:[EMAIL PROTECTED]] Subject: Newton Raphson's or Bisection Interpolation in perl Does anybody know of a module that helps in interpolation using Newton Raphson's method or Bisection method in Perl. Wolf book, Chapter 16, pgs. 638 - 640. You can probably get the code from the example at the O'Reilly site in the examples http://examples.oreilly.com/maperl/ look in the ch16 dir, the file root Chuck Charbeneau ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Parsing Mime emails and Mail::Pop3Client
Yes. It is called MIME-Parser and I believe it is part of the MIME-Tools bundle. It allows you to parse the messages either to disk or in memory. There are good examples in the docs. If you have trouble let me know and I can give you some examples. Hope this helps. Kind regards, Trevor J. Joerges $_=q;rrUSFWPSZK.ZKPFSHFT,rkvtuZbopuifsZQZibdl rrqpxfsfeZcyZQ,,riuuq://xxx.%.dpn,ru~@%.dpn ,rrr8-) ;;s;\~;kpfshft;g;s;\%;tfoenjnf;g;y;B-x;A-w;; s;P;perl;g;s;,;\n;g;s;Y; ;g;s;q;\t;g;print; - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 06, 2002 11:34 PM Subject: Parsing Mime emails and Mail::Pop3Client | Hi! | | I'm writing a script that retrieves email from POP3 servers using | Mail::Pop3. The hard thing to do is when the message is mime type with | attachments. It is real dificult to parse them. There's always one email | message that gives trouble. Or I dont get the attachment, or if charset | changes then comes trouble. | | So my question is: is there a ready-made good module available to parse | email messages of any type that can read from an array that I save from | Mail:Pop3? | | Thanks in advance, | Mauricio | | ___ | Perl-Win32-Users mailing list | [EMAIL PROTECTED] | To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs | ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Printing to 2 destinations with one statement in Windows
I am using ActiveState Perl v5.6.1 build 631 for a bunch of different projects. I keep coming up with the same need in most of my programs. I would like to be able to direct output to both the screen and a file without having to use pairs of print statements. The code: print LOG_FILE something useful here; print something useful here; quickly becomes challenging to manage and gets long quickly. (I wouldn't mind if I were paid by the line.) I would like is to have a file handle to the file and a file handle to the file and STDOUT combination. This would allow me to send everything that goes to the console to the file, but also be able to send lines directly to the file without going to the console. Is this possible or am I just being lazier than the standard PERL programmer. Thanks for your help. James H. Cutts IIIIntegrated Technology Services Computer Project Manager Research and Education Support Phone: (573) 882-6181 University of Missouri - Columbia FAX: [573] 884=8192 DC017.00, 265H Quarterdeck Columbia, MO 65212 E-Mail: [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Printing to 2 destinations with one statement in Windows
I can think of a few approaches... 1. write a subroutine to do this. 2. write a source filter (http://www.samag.com/documents/s=1287/sam03030004/) 3. use tie I would probably choose the third. It is possible to create a module that you simulate a filehandle (or hash, or array, etc). The short of it is that your module will intercept prints to the filehandle and do whatever it wants with them, including printing to a file and STDOUT. Check out perltie, it explains it better than I ever could (http://www.perldoc.com/perl5.6.1/pod/perltie.html) Rob -Original Message- From: Cutts III, James H. [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 9:16 AM To: [EMAIL PROTECTED] Subject: Printing to 2 destinations with one statement in Windows I am using ActiveState Perl v5.6.1 build 631 for a bunch of different projects. I keep coming up with the same need in most of my programs. I would like to be able to direct output to both the screen and a file without having to use pairs of print statements. The code: print LOG_FILE something useful here; print something useful here; quickly becomes challenging to manage and gets long quickly. (I wouldn't mind if I were paid by the line.) I would like is to have a file handle to the file and a file handle to the file and STDOUT combination. This would allow me to send everything that goes to the console to the file, but also be able to send lines directly to the file without going to the console. Is this possible or am I just being lazier than the standard PERL programmer. Thanks for your help. James H. Cutts IIIIntegrated Technology Services Computer Project Manager Research and Education Support Phone: (573) 882-6181 University of Missouri - Columbia FAX: [573] 884=8192 DC017.00, 265H Quarterdeck Columbia, MO 65212 E-Mail: [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Printing to 2 destinations with one statement in Windows
--- Cutts III, James H. [EMAIL PROTECTED] wrote: I am using ActiveState Perl v5.6.1 build 631 for a bunch of different projects. I keep coming up with the same need in most of my programs. I would like to be able to direct output to both the screen and a file without having to use pairs of print statements. The code: print LOG_FILE something useful here; print something useful here; quickly becomes challenging to manage and gets long quickly. (I wouldn't mind if I were paid by the line.) I would like is to have a file handle to the file and a file handle to the file and STDOUT combination. This would allow me to send everything that goes to the console to the file, but also be able to send lines directly to the file without going to the console. Is this possible or am I just being lazier than the standard PERL programmer. You might look at Log::Logger. It has a OO interface. I modified it slightly so it printed the time and date too. -CO __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs