Re: Lottery Regex

2007-11-10 Thread Rob Dixon
Omega -1911 wrote: Thanks Rob, Is this homework? Not hardly! I was sitting here the other day and the thought came to mind as our state lottery has not had a winner in over a year. (The public started thinking that there is a conspiracy because it was exactly a year ago that our state went to c

Re: Lottery Regex

2007-11-10 Thread Omega -1911
Thanks Rob, Is this homework? Not hardly! I was sitting here the other day and the thought came to mind as our state lottery has not had a winner in over a year. (The public started thinking that there is a conspiracy because it was exactly a year ago that our state went to computer generated lott

Re: File Size Limit in Archive::Perl

2007-11-10 Thread Rob Dixon
San wrote: Is there any way to limit the file size while zipping using Archive::Zip so that it will stop processing a zip operation on a file list when it crosses the maximum file size. Hey San Unfortunately Archive::Zip requires that an archive be written to disk before the compression is pe

Re: Lottery Regex

2007-11-10 Thread Rob Dixon
Omega -1911 wrote: Can anyone assist with a regex to pull lottery numbers from a page? The following is one example I have tried: All data from the web page is pushed into an array. ( Header and footer info is removed before being pushed into the array.) The entire goal here is an exercise I wa

Re: Regex Help

2007-11-10 Thread Omega -1911
Thank you both Dr.Ruud & Jonathan Lang. I will give both examples a try later today and let you know how it all turns out. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Regex Help

2007-11-10 Thread Omega -1911
Thank you both Dr.Ruud & Jonathan Lang. I will give both examples a try later today and let you know how it all turns out. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Regex Help

2007-11-10 Thread Dr.Ruud
"Jonathan Lang" schreef: > while () { > ($a[0], $a[1], $a[2], $a[3], $a[4], $b) = /(\d+), (\d+), (\d+), > (\d+), (\d+), Powerball: (\d+)/; > push @common, @a; push @powerball, $b; > } A slightly different way to do that, is: while () { if (my @numbers = /(\d+), (\d

File Size Limit in Archive::Perl

2007-11-10 Thread San
Hi All, Is there any way to limit the file size while zipping using Archive::Zip so that it will stop processing a zip operation on a file list when it crosses the maximum file size. Thanks in advance. -A -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: Regex Help

2007-11-10 Thread Jonathan Lang
Omega -1911 wrote: > @liners = split /(\s\[0-9],\s)Powerball:\s[0-9]/,$data_string; Instead of split, just do a pattern match: ($a[0], $a[1], $a[2], $a[3], $a[4], $b) = /(\d+), (\d+), (\d+), (\d+), (\d+), Powerball: (\d+)/; This puts the first five numbers into the array @a, and puts the power

Re: Regex Help

2007-11-10 Thread joy_peng
On Nov 10, 2007 5:10 PM, Omega -1911 <[EMAIL PROTECTED]> wrote: >What I will need to be able to do > is place the most common 5 numbers (before the word "powerball") into > an array then place the powerball numbers into another array. Thanks > in advance. > > @liners = split /(\s\[0-9],\s)Powerbal

Regex Help

2007-11-10 Thread Omega -1911
Hello, Can anyone assist with a regex to pull lottery numbers from a page? The following is one example I have tried: All data from the web page is pushed into an array. ( Header and footer info is removed before being pushed into the array.) The entire goal here is an exercise I was playing with

Re: About FASTA file

2007-11-10 Thread Spiros Denaxas
On Nov 8, 3:42 am, [EMAIL PROTECTED] (Auxence Sima) wrote: > i have Sequence Data in a file that i named " OUTPUT.TXT",and hereis my > question. I would like to create a FASTA data file, and i wonder how to > process. do i have to just take out the info inside the OUTPUT.TXT, and keep > only

Lottery Regex

2007-11-10 Thread Omega -1911
Hello, Can anyone assist with a regex to pull lottery numbers from a page? The following is one example I have tried: All data from the web page is pushed into an array. ( Header and footer info is removed before being pushed into the array.) The entire goal here is an exercise I was playing with