NAME
beginners-faq - FAQ for the beginners-cgi 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
Here's my position on this.
Randal is a very respected member of the Perl community, but in this
case I think his response was a bit extreme, especially as it didn't
spell out *why* he was so annoyed.
First of all, what's The FAQ? Perl, and the various version of
Perl, have a lot of different
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]
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 peldoc
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 could write
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
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]+) MSM SCTS\((.+)\)/)
#!/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=msftf=sl1d1t1c1ohgv');
print $response-content;
Can someone please
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
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
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
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: Rob
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 ask
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
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(), \n;
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 says, it's
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
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):
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
rob
Ask your friends where they would use it and how and,
when they burble, just understand that they've simply hit on a fad.
/rob
Yes! I will do :-)
José.
-Original Message-
From: Rob Dixon [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 5:15 PM
To: [EMAIL PROTECTED]
--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
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
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]+) MSM SCTS\((.+)\)/)
{
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
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
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
no library
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
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,
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.
Thanks in Advance.
BassFool
# from a unix shell,
# empty string
perl -e '$s = ;unless ($s) {print Empty string\n;}'
# null value
perl
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
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 eq ) {
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
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.
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
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
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. 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
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
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');
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:
sub
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,pid', 'user');
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',
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
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
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 maintain
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
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(
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}{templates}{CollectionProperty},
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 strict;
use
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
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
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
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 the Perl
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
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
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
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:
58 matches
Mail list logo