Re: Extract user from email address

2007-02-06 Thread Mathew
Chad Eldridge wrote: > Rob Dixon wrote: >> Chad Eldridge wrote: >> > >>> Mathew wrote: >> >> Adriano Ferreira wrote: >> >>> > On 2/2/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: >> >> I have a script which extracts email addresses from a web page, >> pushes them into an ar

how to embed data in perl programs

2007-02-06 Thread Sharan Basappa
Question is how to embed text in a perl program instead of reading it from a file or initializing the text in a string variable. I have done the following but when I execute the script, I get no output. Is there an issue I am overlooking ? Another question is whether perl will replace the varia

Re: Extract user from email address

2007-02-06 Thread Randal L. Schwartz
> "Chad" == Chad Eldridge <[EMAIL PROTECTED]> writes: Chad> As to disadvantages to Email::Address, I can't see any. It's not a Chad> matter of disadvantage, I just prefer to write the code myself when I Chad> can. Mostly this comes just from curiousity. So, it's really more Chad> preference th

Re: how to embed data in perl programs

2007-02-06 Thread Tom Phoenix
On 2/6/07, Sharan Basappa <[EMAIL PROTECTED]> wrote: Question is how to embed text in a perl program instead of reading it from a file or initializing the text in a string variable. Are you looking for here-documents? Look in perlop under Quote and Quote-like Operators to see the different way

Re: Extract user from email address

2007-02-06 Thread Jay Savage
On 2/5/07, Chad Eldridge <[EMAIL PROTECTED]> wrote: [snip] > But using Email::Address would have got it right in the first place, and > I still > can't see what the disadvantage is. > > HTH, > > Rob You are right about that code I posted, I'm sorry about that. I was thrown together in a hurry wh

regular expression

2007-02-06 Thread Sayed, Irfan \(Irfan\)
Hi All, Following is my code # /usr/bin/perl use strict; use warnings; my $CT = "/usr/atria/bin/cleartool"; my @vob_list = `$CT lsvob -s`; my $ele; my @vob_list1; my $i; my $size; $size = $#vob_list+1; for ($i=0;$i<=$size;$i++) { $ele = $vob_list[$i]; $ele =~ s/$ele/"$ele",/g; $vob_l

Re: regular expression

2007-02-06 Thread Jocelyn Kirschenbaum
Is it possible that the array vob_list is empty? It seem that 1 is added to the number of elements in the array. So the loop at least 1 time. >>> "Sayed, Irfan (Irfan)" <[EMAIL PROTECTED]> 2/6/2007 11:53:24 AM >>> Hi All, Following is my code # /usr/bin/perl use strict; use warnings;

Re: regular expression

2007-02-06 Thread John W. Krahn
Sayed, Irfan (Irfan) wrote: > Hi All, Hello, > Following is my code > > # /usr/bin/perl > use strict; > use warnings; > > my $CT = "/usr/atria/bin/cleartool"; > my @vob_list = `$CT lsvob -s`; > my $ele; > my @vob_list1; > my $i; > my $size; > $size = $#vob_list+1; > > for ($i=0;$i<=$siz

Re: how to embed data in perl programs

2007-02-06 Thread John W. Krahn
Sharan Basappa wrote: > Question is how to embed text in a perl program instead of reading it > from a file or initializing the text in a string variable. > > I have done the following but when I execute the script, I get no output. > > Is there an issue I am overlooking ? > > Another question i

soap with attachments

2007-02-06 Thread DiGregorio, Dave
I need to send an attachment over soap. I have found little documentation on this topic. I am trying to use the method below but can not seem to get it to work. The attachment needs to come after the closing envelop tag. Anyone have any experience here? my $CID = "template" ; my $

RE: soap with attachments

2007-02-06 Thread DiGregorio, Dave
P.S. this is one of the errors I get. Modification of non-creatable array value attempted, subscript -1 at C:/Perl/site/lib/SOAP/MIME.pm line 435. Thanks DRD -Original Message- From: DiGregorio, Dave [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:08 PM To: beginners

Re: how to embed data in perl programs

2007-02-06 Thread John W. Krahn
John W. Krahn wrote: > Sharan Basappa wrote: >>Question is how to embed text in a perl program instead of reading it >>from a file or initializing the text in a string variable. >> >>I have done the following but when I execute the script, I get no output. >> >>Is there an issue I am overlooking ?

mailing images from a url

2007-02-06 Thread Matt Herzog
Hi All. We have three managers each of whom have several corporate client accounts each. Each corp account has an instance of our web app running on a server hosted by us. We have cricket (cricket.sourceforge.net) running on another server. Cricket is monitoring the overall level of activity on

Re: Extract user from email address

2007-02-06 Thread Dr.Ruud
Chad Eldridge schreef: > As to disadvantages to Email::Address, I can't see any. It's not a > matter of disadvantage, I just prefer to write the code myself when I > can. Mostly this comes just from curiousity. So, it's really more > preference than a matter of advantage. I'm not going to try and

loop through a log file

2007-02-06 Thread Jon W
Hi. I have a log file that contains a collection of individual test results, each beginning with a "START", and ending with a "FINISH". I would like to print out the names of the tests that have the error message "LOOKING FOR THIS STRING". log file: -

Re: loop through a log file

2007-02-06 Thread Rob Dixon
Jon W wrote: Hi. I have a log file that contains a collection of individual test results, each beginning with a "START", and ending with a "FINISH". I would like to print out the names of the tests that have the error message "LOOKING FOR THIS STRING". log file: ---

post file

2007-02-06 Thread Jm lists
Hello, I have a XML file which needed to be posted to a remote site. I have no idea on how to do it.Can you show me some useful reference?Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: post file

2007-02-06 Thread Mumia W.
On 02/06/2007 10:16 PM, Jm lists wrote: Hello, I have a XML file which needed to be posted to a remote site. I have no idea on how to do it.Can you show me some useful reference?Thanks. If the perl documentation is properly installed, you will have the "perldoc" utility. At a command promp