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:
"
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
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
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
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
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:
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
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
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
"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
"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
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
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
"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
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
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
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
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
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');
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
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
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
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
> 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
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
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.
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
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
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
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
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
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
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: "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
>
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
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
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\((.+)\)/)
>> {
>>
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
--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
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
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
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):
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}
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 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(),
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 ($
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
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:
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://
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"
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
#!/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
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\((.+)\)/)
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
> "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
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
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]
57 matches
Mail list logo