Re: Yahoo! Getter

2003-11-24 Thread Jason Dusek
On Monday, November 24, 2003, at 10:56 PM, Andrew Gaffney wrote: There is atleast 1 Perl program for downloading Yahoo mail out there. Okay, but let's say I want to learn how to do it anyway. It seems like a good practice problem. - Jason Wakuan complained when he saw a picture of 10 bulls: "

Re: Yahoo! Getter

2003-11-24 Thread Andrew Gaffney
Jason Dusek wrote: On Monday, November 24, 2003, at 10:56 PM, Andrew Gaffney wrote: There is atleast 1 Perl program for downloading Yahoo mail out there. Okay, but let's say I want to /learn/ to do it - since I don't know anything about using Perl on the web. Reply to the list! -- Andrew

Re: Yahoo! Getter

2003-11-24 Thread Andrew Gaffney
Jason Dusek wrote: Hi All, Let's say I want to write a script that: 1)Signs on to Yahoo! Mail for me. 2)Hits the 'Forward' button for each of my messages. 3)Deletes everything and signs out. How do I learn to do this? Do I need any modules? Is this in the FAQ? What is

Yahoo! Getter

2003-11-24 Thread Jason Dusek
Hi All, Let's say I want to write a script that: 1) Signs on to Yahoo! Mail for me. 2) Hits the 'Forward' button for each of my messages. 3) Deletes everything and signs out. How do I learn to do this? Do I need any modules? Is this in the FAQ? What is t

Re: dbmopen compatibility from perl 5.6 to 5.8

2003-11-24 Thread Robert Brown
Wiggins d'Anconia writes: > Robert Brown wrote: > > I posted this question once before, a couple of days ago, but never > > really got an answer... > > Not attempting a flame war or anything, and I don't necessarily have a > solution but your original post sounded very ungrateful towards th

Re: Sys::Syslog - RESOLVED, sorta...

2003-11-24 Thread Beau E. Cox
Hi - Switched to Unix::Syslog -> #!/usr/bin/perl use strict; use warnings; use Unix::Syslog qw(:macros); # Syslog macros use Unix::Syslog qw(:subs);# Syslog functions openlog $0, LOG_CONS | LOG_PID, LOG_USER; syslog LOG_ERR, 'test error msg'; closelog; Works fine. I have no idea why Sys:

Re: dbmopen compatibility from perl 5.6 to 5.8

2003-11-24 Thread Wiggins d'Anconia
Robert Brown wrote: I posted this question once before, a couple of days ago, but never really got an answer... Not attempting a flame war or anything, and I don't necessarily have a solution but your original post sounded very ungrateful towards the Perl development team and maintainers and may

Re: Upgrading from Perl 5.8.0 to Perl 5.8.2

2003-11-24 Thread Tore Aursand
On Mon, 24 Nov 2003 17:19:25 +, Johnston Michael J Contr AFRL/DES wrote: > What did I do wrong and how can I fix it? Do I need to uninstall Perl > 5.8.0 or do I just need to recompile Perl 5.8.2 somehow? Any advice > would be awesome. I upgraded as soon as Perl 5.8.2 hit the street, but I di

Re: Sys:Syslog

2003-11-24 Thread Beau E. Cox
On Monday 24 November 2003 03:03 pm, david wrote: > Beau E. Cox wrote: > > Hi - > > > > I'm having trouble logging to syslog on my Linux (Sorcerer) > > machine with perl 8.0.2 installed. This script logs nothing: Oops - perl 5.8.2 > > [snipped] "beefed" up the script to: #!/usr/bin/perl use st

Re: perl is slick

2003-11-24 Thread Todd W.
"Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Todd wrote: > > > > Perl is so slick: > > > > if ( $self->{code} ) { > > $string = $self->{code}; > > } else { > > $self->{class}{file}{generator}{tt2}->process( > > $self->{class}{file}{generator}{fmgr}{template

Re: perl is slick

2003-11-24 Thread Todd W.
"R. Joseph Newton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Todd W." wrote: > > > Perl is so slick: > > > > if ( $self->{code} ) { > > $string = $self->{code}; > > } else { > > $self->{class}{file}{generator}{tt2}->process( > > $self->{class}{file}{generator}{fmgr

dbmopen compatibility from perl 5.6 to 5.8

2003-11-24 Thread Robert Brown
I posted this question once before, a couple of days ago, but never really got an answer... I have numerous perl scripts, mostly cgi's, that open numerous password database files implemented as persistent hashes in perl code. I recently upgraded from an earlier version of Red Hat Linux to versio

Re: empty strings vs nulls

2003-11-24 Thread R. Joseph Newton
Rob Dixon wrote: > Beware, though, that you may also want to test > for all-spaces in a field. Also some databases > disallow zero-length string fields. > > HTH, > > Rob I don't know about that. Usually I see this constraint as an option applied to required fields when they are needed to maintai

Re: perl is slick

2003-11-24 Thread R. Joseph Newton
"Todd W." wrote: > Perl is so slick: > > if ( $self->{code} ) { > $string = $self->{code}; > } else { > $self->{class}{file}{generator}{tt2}->process( > $self->{class}{file}{generator}{fmgr}{templates}{CollectionProperty}, > $self, > \$string > ) || die $self->{cl

Re: automate web login

2003-11-24 Thread Wiggins d'Anconia
Please bottom post, and always group reply so others can help and be helped David Byrne wrote: Dear Wiggins, Thank you for your reply. It is true that the /login resolves the '405' error, but the updated script doesn't seem to log me in; instead I remain at the login page. If I try to GET

Re: Sys:Syslog

2003-11-24 Thread Wiggins d'Anconia
Beau E. Cox wrote: Hi - I'm having trouble logging to syslog on my Linux (Sorcerer) machine with perl 8.0.2 installed. This script logs nothing: Should that be 5.8.2? #!/usr/bin/perl use strict; use warnings; use Sys::Syslog qw(:DEFAULT setlogsock); setlogsock('unix'); openlog($0, 'cons,pid', 'u

Re: Sys:Syslog

2003-11-24 Thread david
Beau E. Cox wrote: > Hi - > > I'm having trouble logging to syslog on my Linux (Sorcerer) > machine with perl 8.0.2 installed. This script logs nothing: > > #!/usr/bin/perl > > use strict; > use warnings; > use Sys::Syslog qw(:DEFAULT setlogsock); > > setlogsock('unix'); > openlog($0, 'cons,pi

Re: Can I improve the performance of script by using constant?

2003-11-24 Thread david
Pagoda wrote: > Can I improve the performance of script by using constant? > > Which is the better one? > > use constant const => 1e-12 > > or > > my $const = 1e-12 > the current implmentation of constant is that when you say: use constant const => 1e-12; it's basically translated into: s

Sys:Syslog

2003-11-24 Thread Beau E. Cox
Hi - I'm having trouble logging to syslog on my Linux (Sorcerer) machine with perl 8.0.2 installed. This script logs nothing: #!/usr/bin/perl use strict; use warnings; use Sys::Syslog qw(:DEFAULT setlogsock); setlogsock('unix'); openlog($0, 'cons,pid', 'user'); syslog('err', 'test error msg');

Re: Using zgrep in PERL?

2003-11-24 Thread Andrew Gaffney
Jeff Pearson wrote: OK. Im moving along the PERL learning curve quite well until I hit this wall..Please excuse my ignorance at this stage if this is something that is REALLY basic. At a command shell, I can type: zgrep -c '*.pdf' textfile.txt and come back with a count. How can I execute thi

Using zgrep in PERL?

2003-11-24 Thread Jeff Pearson
OK. Im moving along the PERL learning curve quite well until I hit this wall..Please excuse my ignorance at this stage if this is something that is REALLY basic. At a command shell, I can type: zgrep -c '*.pdf' textfile.txt and come back with a count. How can I execute this command with a

RE: dereferencing a list from a class

2003-11-24 Thread Rajesh Dorairajan
James, Joseph, drieux, Thank you very much for your feedbacks. I wasn't checking mails over the weekend. Sorry for the confusion. I was just trying give an example. Didn't realize they were integers :) I tried the approach below and it works just fine. Thanks for your help Rajesh -Original

RE: Creating uniqueness in complex data structures

2003-11-24 Thread Paul Harwood
OK, maybe I am confusing myself. :) -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:27 AM To: Paul Harwood Cc: James Edward Gray II; Beginner Perl Subject: RE: Creating uniqueness in complex data structures On Nov 24, Paul Harwood

Re: automate web login

2003-11-24 Thread Wiggins d Anconia
> Greetings, > > I used CPAN (libwww-perl) docs as my main reference > and generated the following script (trying 'content' > as well as 'authorization_basic' for user id & pw), > but keep getting "405 Method Not Allowed". > 'Method not allowed' is usually provided when you try a POST and need

automate web login

2003-11-24 Thread David Byrne
Greetings, I used CPAN (libwww-perl) docs as my main reference and generated the following script (trying 'content' as well as 'authorization_basic' for user id & pw), but keep getting "405 Method Not Allowed". I would very much appreciate any suggestions. Cheers, David #!perl -w use LWP::UserA

Re: Strange characters

2003-11-24 Thread LoBue, Mark
At 03:20 PM 11/22/2003, R. Joseph Newton wrote: "LoBue, Mark" wrote: > P.S. My company tells me that our internet mail connector now gets a long > disclaimer on the end of the message. I haven't seen it, but if it is true, > I will stop posting and just lurk until I figure out a way around it.

Re: Don't Send To Me!

2003-11-24 Thread Jason Dusek
On Monday, November 24, 2003, at 02:21 AM, Randal L. Schwartz wrote: If you have procmail delivery, this rule works nicely: :0 Wh: msgid.lock | formail -D 8192 msgid.cache Right from procmailex(1). I am just going to use the 'Reply-To' header in Mail.app and see if it

Re: empty strings vs nulls

2003-11-24 Thread Rob Dixon
Kevin Old wrote: > > On Mon, 2003-11-24 at 13:30, Eric Walker wrote: > > How can I test for empty strings and nulls on a particular value. When > > I get an empty string or a null value I need to do something. > > Hi Eric, > > To test for a empty string simply do the following: > > if ($mystring

Re: Don't Send To Me!

2003-11-24 Thread drieux
On Monday, Nov 24, 2003, at 09:10 US/Pacific, Daniel Staal wrote: [..] It looks like there should be a way to do this in Apple's Mail app. There is manually at least, so I bet you could AppleScript it. Daniel T. Staal p0: the Apple Mail.app trick is Edit-> add reply header fill in w

Re: empty strings vs nulls

2003-11-24 Thread Douglas Lentz
Eric Walker wrote: How can I test for empty strings and nulls on a particular value. When I get an empty string or a null value I need to do something. Thanks in Advance. BassFool # from a unix shell, # empty string perl -e '$s = "";unless ($s) {print "Empty string\n";}' # null value per

Re: empty strings vs nulls

2003-11-24 Thread Kevin Old
On Mon, 2003-11-24 at 13:30, Eric Walker wrote: > How can I test for empty strings and nulls on a particular value. When > I get an empty string or a null value I need to do something. Hi Eric, To test for a empty string simply do the following: if ($mystring eq "") { #string is empty

Re: empty strings vs nulls

2003-11-24 Thread Rob Dixon
Eric Walker wrote: > > How can I test for empty strings and nulls on a particular value. When > I get an empty string or a null value I need to do something. Hi Eric. I assume you're using the DBI module? In general, a null value will be passed back as Perl 'undef' and an empty string as, well

empty strings vs nulls

2003-11-24 Thread Eric Walker
How can I test for empty strings and nulls on a particular value. When I get an empty string or a null value I need to do something. Thanks in Advance. BassFool

Re: help for creating dos based perl exes.

2003-11-24 Thread Jenda Krynicky
From: "Manish Uskaikar" <[EMAIL PROTECTED]> > I want to generated DOS compatible executable of my perl code. Can > anybody help me. I am using perl version 5.8.1. I have also > experimented using "perlcc -o hello hello.pl" > > this gives me bad command, and also lists a list of files saying that >

Change computername and IP address on WIN32

2003-11-24 Thread Ned Cunningham
Hello. I need to be able to rename a NT4 workstations computername and IP address remotely with Perl. Has any one a good starting point? Example scripts? Links? Thankx Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [E

RE: help for creating dos based perl exes.

2003-11-24 Thread Tim Johnson
Perlcc is very experimental, and will probably not be a viable solution for any production-level projects any time soon. I guess the next question would be what you mean by DOS-compatible. If you mean 16-bit DOS, then I'm not sure if that is possible. In that case your best bet might be to pa

RE: Creating uniqueness in complex data structures

2003-11-24 Thread Jeff 'japhy' Pinyan
On Nov 24, Paul Harwood said: >The problem is that the value in $thread can be duplicated therefore it >will write over anything else contained there. That's the problem I am >having. > >-Original Message- > >> if ($_ =~ /(T[0-9A-F]+) SCTS\((.+)\)/) >> { >>

Upgrading from Perl 5.8.0 to Perl 5.8.2

2003-11-24 Thread Johnston Michael J Contr AFRL/DES
I'm using Redhat 9.0 and after installing it, I came with Perl 5.8.0. Well, I tried to upgrade to 5.8.2 and instead of upgrading, it just installed another version. Thinking that it worked correctly, I installed Net-SNMP and all the modules. My problem is that when I try and run a script that us

Re: Don't Send To Me!

2003-11-24 Thread Daniel Staal
--As off Monday, November 24, 2003 12:54 AM -0600, Jason Dusek is alleged to have said: Is there some way to get people on this list to stop sending me two emails at once? I am on the beginner's list - so when you send email to me and then cc to the list, I get two. Which is annoying. I suppose

RE: What is Inversion of Control (IoC)

2003-11-24 Thread NYIMI Jose (BMB)
Ask your friends where they would use it and how and, when they burble, just understand that they've simply hit on a fad. Yes! I will do :-) José. -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 5:15 PM To: [EMAIL PROTECTED] Subject: Re: Wh

RE: Creating uniqueness in complex data structures

2003-11-24 Thread Paul Harwood
The problem is that the value in $thread can be duplicated therefore it will write over anything else contained there. That's the problem I am having. -Original Message- From: James Edward Gray II [mailto:[EMAIL PROTECTED] Posted At: Monday, November 24, 2003 6:18 AM Posted To: Perl Conve

Weekly list FAQ posting

2003-11-24 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

Re: perl is slick

2003-11-24 Thread Rob Dixon
Todd wrote: > > Perl is so slick: > > if ( $self->{code} ) { > $string = $self->{code}; > } else { > $self->{class}{file}{generator}{tt2}->process( > $self->{class}{file}{generator}{fmgr}{templates}{CollectionProperty}, > $self, > \$string > ) || die $self->{class}

Re: What is Inversion of Control (IoC)

2003-11-24 Thread Rob Dixon
Nyimi Jose wrote: > > Hi Rob, > > Indeed the question i had in mind while posting was "should i > care about IoC while developping in Perl ?". Your answer seems > to be *no*. Then how can i argue to my friends that "IoC is > not often a good way to write stuff". Have you some examples ? As James s

perl is slick

2003-11-24 Thread Todd W.
Perl is so slick: if ( $self->{code} ) { $string = $self->{code}; } else { $self->{class}{file}{generator}{tt2}->process( $self->{class}{file}{generator}{fmgr}{templates}{CollectionProperty}, $self, \$string ) || die $self->{class}{file}{generator}{tt2}->error(),

Re: Creating uniqueness in complex data structures

2003-11-24 Thread James Edward Gray II
On Nov 23, 2003, at 6:36 PM, Paul Harwood wrote: The log files I am parsing have threads (a T followed by several alphanumeric numbers) associated with each line of text. I want to push each value of $2 (which is a server name) into an anonymous array. This works fine in the following code. if ($

Re: What is Inversion of Control (IoC)

2003-11-24 Thread James Edward Gray II
On Nov 24, 2003, at 5:08 AM, NYIMI Jose (BMB) wrote: Hi Rob, Indeed the question i had in mind while posting was "should i care about IoC while developping in Perl ?". Your answer seems to be *no*. I think you're over generalizing here. First, this isn't a Perl issue, specifically, you could as

RE: What is Inversion of Control (IoC)

2003-11-24 Thread NYIMI Jose (BMB)
Hi Rob, Indeed the question i had in mind while posting was "should i care about IoC while developping in Perl ?". Your answer seems to be *no*. Then how can i argue to my friends that "IoC is not often a good way to write stuff". Have you some examples ? José. -Original Message- From:

Re: What is Inversion of Control (IoC)

2003-11-24 Thread Rob Dixon
Nyimi Jose wrote: > > More and more my fellow Java's friends tell me about IoC. > What is IoC in Perl world ? > Examples ? > > Here are some links about IoC a friend gave to me : > http://picocontainer.org/ioc.html > http://jakarta.apache-korea.org/avalon/framework/guide-patterns-ioc.html > http://

RE: Can't locate object method "get" via package "LWP::UserAgent"

2003-11-24 Thread NYIMI Jose (BMB)
I haven't seen where you said: use LWP::UserAgent; José. -Original Message- From: PerlDiscuss - Perl Newsgroups and mailing lists [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 6:50 AM To: [EMAIL PROTECTED] Subject: Can't locate object method "get" via package "LWP::UserAgent"

help for creating dos based perl exes.

2003-11-24 Thread Manish Uskaikar
Hi, I want to generated DOS compatible executable of my perl code. Can anybody help me. I am using perl version 5.8.1. I have also experimented using "perlcc -o hello hello.pl" this gives me bad command, and also lists a list of files saying that no library found. Can any one help me on the ab

Can't locate object method "get" via package "LWP::UserAgent"

2003-11-24 Thread PerlDiscuss - Perl Newsgroups and mailing lists
#!/usr/bin/perl use strict; use URI; #use HTTP::Request::Common qw(GET); use LWP; #use HTTP::Response; my $browser = LWP::UserAgent->new; $browser->env_proxy(); my $response=$browser->get('http://finance.yahoo.com/d/quotes.csv?s=msft&f=sl1d1t1c1ohgv'); print $response->content; Can someone plea

Creating uniqueness in complex data structures

2003-11-24 Thread Paul Harwood
The log files I am parsing have threads (a T followed by several alphanumeric numbers) associated with each line of text. I want to push each value of $2 (which is a server name) into an anonymous array. This works fine in the following code. if ($_ =~ /(T[0-9A-F]+) SCTS\((.+)\)/)

What is Inversion of Control (IoC)

2003-11-24 Thread NYIMI Jose (BMB)
Hello, More and more my fellow Java's friends tell me about IoC. What is IoC in Perl world ? Examples ? Here are some links about IoC a friend gave to me : http://picocontainer.org/ioc.html http://jakarta.apache-korea.org/avalon/framework/guide-patterns-ioc.html http://www.springframework.org/doc

Re: Don't Send To Me!

2003-11-24 Thread Randal L. Schwartz
> "Jason" == Jason Dusek <[EMAIL PROTECTED]> writes: Jason> Is there some way to get people on this list to stop sending me two Jason> emails at once? I am on the beginner's list - so when you send email Jason> to me and then cc to the list, I get two. Which is annoying. I Jason> suppose I

Re: POD, Faq and tradition - Re: extracting email addys.

2003-11-24 Thread Jason Dusek
On Sunday, November 23, 2003, at 10:39 PM, R. Joseph Newton wrote: We newbies could just send the thing out to the list, and everyone could ignore it in good conscience. If the FAQ didn't help us, we could always repost with a note about "BadFAQ" in the subject line. That is actually what peldo

Re: First Steps

2003-11-24 Thread Mac Intyre, Steven
Hi Guys, Thanks for the replies. Will follow all suggestions :) Regards, Steven -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]