@INC question

2003-08-09 Thread Kim Harris
I am trying to run a perl script that is not usually run in my environment, but I received the message below. I need to understand how to change the @INC path such that it points to the verson of perl that supports warnings.pm. Can't locate warnings.pm in @INC (@INC contains: /usr/perl5/5.00503/su

RE: Can't locate object method "new" error

2003-08-09 Thread wiggins
On Wed, 06 Aug 2003 11:58:53 -0800, [EMAIL PROTECTED] wrote: > Depending on what I'm installing or runing I'm getting this message, > for example running test MD5 gives: > Can't locate object method "new" via package "MD5" (perhaps you forgot > to

Re: extracting text

2003-08-09 Thread John W. Krahn
Bryan Irvine wrote: > > [EMAIL PROTECTED] wrote: > > > > Assuming there is only one set of brackets on a line, and you only > > want the IP address between them, and READLOG is an open handle to > > your log: > > > > - Not Tested - > > my @ips; > > while (my $line = ) { > >if ($line =~ /\[(.*

Re: Ok I am tired

2003-08-09 Thread Steve Grazzini
On Fri, Aug 08, 2003 at 10:49:39PM -0700, Gupta, Sharad wrote: > sub Foo::INC { > my ($self,$filename) = @_; > my @paths = "http:/me.com"; > my @urls = map{$_ . "/" . [EMAIL PROTECTED]; > my $ua = LWP::UserAgent->new(); > foreach my $url(@urls) { > my $request = HTTP::Re

Re: smtp problem

2003-08-09 Thread George Schlossnagle
On Saturday, August 9, 2003, at 06:35 PM, awards wrote: Hi, Hi. Here's your connection failure. The error is pretty clear. You need to provide the necessary credentials to the server, either via SMTP auth or POP-before-SMTP. Net::SMTP=GLOB(0x8246190)>>> RCPT TO:<[EMAIL PROTECTED]> Net::SMTP

Re: logging issue

2003-08-09 Thread Quenten Griffith
Disregard I had an extra space after the glob $file part once I made it (glob $file) instead of (glob $file ) it worked. Odd very odd. --- Quenten Griffith <[EMAIL PROTECTED]> wrote: > Hello all, > > For somereason I have a bit of code that will not > write out to the log file when it finds my ar

Re: send multipart alternative mails using MIME::Entity

2003-08-09 Thread Wiggins d'Anconia
Ramprasad wrote: Can someone send me some examples on how to send multipart alternative mails using MIME::Entity Check the distribution's examples, for instance: http://search.cpan.org/src/ERYQ/MIME-tools-6.200_02/examples/mimepostcard If that doesn't provide enough, what have you tried? Where ar

Re: How to replace a text in a file

2003-08-09 Thread Vinay Thombre
I want in.txt and out.txt file to be same. That is I want to replcae text insa me file and do not want to create a new file. Thanks, Vinay - Original Message - From: "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> To: "Vinay Thombre" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, Aug

Get html page title and make a temporary variable

2003-08-09 Thread Rich
Beginners, I'm about to write my first Perl script that will function to send this page. When the user clicks 'send this page' button I'm going to open a script generated html page called /send_this_page.pl where the user can fill out the email address(es) to send the page to. I think I have

Re: Tracing Subs

2003-08-09 Thread Jeff 'japhy' Pinyan
On Aug 8, Gupta, Sharad said: >I have a bunch of scripts which calls a sub from a module, and that >module in turn would call another sub from someone else and so on. >Skimming through them is driving me crazy. > >Is there a way i can trace the calling of the routines till N levels. Using the cal

Re: Questions of OOP in Perl

2003-08-09 Thread Pablo Fischer
Thanks! After sending my question I found in a website the topic of 'private' methods, and shows code like this: my $method_name = sub { my $this = shift; _blablabla_ }; And to access it : $this->$method_name("Arg1"); Now, this it really works for 'private' methods? Thanks! -- Pa

Re: decoding MIME::base64

2003-08-09 Thread zentara
On Thu, 7 Aug 2003 23:39:02 +0200, [EMAIL PROTECTED] (Awards) wrote: >Hi, > >maybe i'm using the wrong module, but that is why i'm here asking. >I have downloaded a message with an jpg attachment fine. >But what i want to learn is that we have in the attachment the ugly code. >So I'm on my windows

Re: List::Util / arrays

2003-08-09 Thread John W. Krahn
Jakob Kofoed wrote: > > Hi, Hello, > I am trying to get the maximum number in a file looking like: > > 1 5001 > 2 5002 > 3 5003 > 4 5004 > 5 5005 > 6 5006 > 7 5007 > 8 5008 > 9 5009 > 10 5010 > 11 5011 > 12 5012 > 13 5013 > 14 5014 > 15 5015 > 16 5016 > 17 5017

RE: Regex Pattern

2003-08-09 Thread Jeff 'japhy' Pinyan
On Aug 8, Trevor Morrison said: >Thanks for taking the time to look over my problem. In the end, I did end >up using your idea on the map ( scalar reverse). It worked like a champ! Glad it worked for you -- I hoped the whole reversing thing wasn't going to be too esoteric, but it's surprising h

Re: Getting string of several lines from <>

2003-08-09 Thread Jeff 'japhy' Pinyan
On Aug 6, Trina Espinoza said: >I would like to have the data of <> as one long string. Right now I have >@list = <> because if I do $scalar= <> it only captures one line of my >file. However, what I really need is to capture the data as one long >string. Can anyone deliver a swift answer for th

pid->memory usage

2003-08-09 Thread Biju Ramachandran
Hi there I just want to know is there any way to find out the PID ans how much a process is using the physical and virtual memory, as it is show by the Windows NT task manager. Thanks Biju _ MSN 8 helps eliminate e-mail viruses.

Re: Still need unlink help!! God help me.

2003-08-09 Thread Kates Gasis
This code seem to work fine. open(FH,"listitems.txt") || die $!; unlink map{chomp; glob "c:/testdir/*$_*.*" } or die $!; close(FH); I created files with names that include texts in the listitems.txt file and they were all deleted except those that doesn't match. - Original Message - Fro

Re: Still need unlink help!! God help me.

2003-08-09 Thread Oliver Schnarchendorf
On Sat, 9 Aug 2003 00:22:09 -0400 (EDT), perlwannabe wrote: > I did indeed comment every single > variable, but deleted it from my sample script for simplicity. I have > been wrestling with this problem for a while. I did run your code and got > the following error: > > C:\testdir>perl testfile.

RE: suid problem

2003-08-09 Thread Egleton, Gary
If you need to run bits of code as root try using the product SUGUARD or the shareware version SUDO -Original Message- From: Gary Stainburn [mailto:[EMAIL PROTECTED] Sent: 05 August 2003 17:00 To: [EMAIL PROTECTED] Subject: suid problem Importance: High Hi folks, I've got an AIX 4.2 b