Re: RegEx again

2007-05-20 Thread Romeo Theriault
> I got two arrays of strings. > I am trying to search to see if any of the strings of one array > matches a string of the other array. > > Lists to search: > qw/big bad blue ball/, qw/box sand house/ > > Search list: > qw/brown black blue/ > > I should be able to get list #1 but not list #2 be

Store contents of array in a variable?

2007-05-17 Thread Romeo Theriault
This is probably a dumb question but is it possible to store the contents of an array into a variable? Something like this: $variable = foreach $array_ref7 (@rowstash7) { return "@$array_ref7\n"; } I have this script below in which I am trying to send the contents of an array within a

program design question

2007-03-11 Thread Romeo Theriault
I have a question about what a good design would be for a particular program would be. This program checks a file that holds these contents, just more of them: 107: kmemsize21946163019086 15216913 16738604 0 lockedpages 0 0743 743

Re: sending a variable in a Net::SMTP message not working

2007-02-03 Thread Romeo Theriault
On 2/2/07, Mumia W. <[EMAIL PROTECTED]> wrote: On 02/02/2007 02:25 PM, Romeo Theriault wrote: > [...] >my $smtp = Net::SMTP_auth->new('miranda.umfk.maine.edu'); >$smtp->auth('LOGIN', 'user', 'password'); > >$smt

sending a variable in a Net::SMTP message not working

2007-02-02 Thread Romeo Theriault
Hello, I'm trying to send a variable in a email using Net::SMTP. For some reason no matter what I do the contents of the variable are not sent. I know the variable holds the information I want because if I do a print $file; the contents are printed. Here is the program. Thanks for any help. #!/

Re: Re: unique hash keys

2006-10-23 Thread Romeo Theriault
On 10/23/06, Adriano Ferreira <[EMAIL PROTECTED]> wrote: On 10/23/06, Romeo Theriault <[EMAIL PROTECTED]> wrote: > Thank you Adriano, that works nicely after I added: > > use Memoize::AnyDBM_File; > > before that I was getting this error: > > AnyDBM_File d

Re: unique hash keys

2006-10-23 Thread Romeo Theriault
On Oct 23, 2006, at 8:45 AM, Adriano Ferreira wrote: On 10/23/06, Romeo Theriault <[EMAIL PROTECTED]> wrote: This all works fine, but in the last step of the program I am trying to get the program to tell me key's that are unique to only the first hash. No matter what I do it always

unique hash keys

2006-10-23 Thread Romeo Theriault
Hi, I'm playing with hashes trying to get myself more familiar with them. I have a little program below that has a hash with some keys and values in it. The program then copies some of the values/keys to another hash depending on their values. This all works fine, but in the last step of th

Re: Newbie

2006-10-13 Thread Romeo Theriault
Perl is cross-platform, extremely useful for working with large amounts of text, using regular expressions, it has a great repository of modules for you to use for just about any task you can think of (CPAN), it's open source, it's got a great community, the list goes on and on. I would r

Re: New-Line in Regular Expression

2006-09-08 Thread Romeo Theriault
g file after it matches just one /user ([\w.]+)\.\.\.$/. Thanks. Romeo On 9/7/06, Rob Dixon <[EMAIL PROTECTED]> wrote: Romeo Theriault wrote: > > Hello, I'm trying to match this line (or more than one) starting from > the words "user picard..." > &

New-Line in Regular Expression

2006-09-07 Thread Romeo Theriault
Hello, I'm trying to match this line (or more than one) starting from the words "user picard..." 8/28/2006 1:04:41 PM: Retrieving mail from host mail.maine.edu [130.111.32.22], user picard... 8/28/2006 1:04:45 PM: Mail retrieval failed, reason: POP3 Host did not acknowlege password and retu