Re: I feel like an idiot...

2001-06-20 Thread Tom Yarrish
_DATA__ > > > 305 = normal,noselector,password,1-999 > > > 307 = normal,noselector,password,1-999 > > > 11307 = normal,noselector,password,1-999 > > > > > > for each line of (info below __DATA__ token; could be with > > > open above while), matc

Re: I feel like an idiot...

2001-06-20 Thread Tom Yarrish
rint "$key: $value\n"; > } > > __DATA__ > 305 = normal,noselector,password,1-999 > 307 = normal,noselector,password,1-999 > 11307 = normal,noselector,password,1-999 > > To initialize an array, code like this: > > @array = qw(one two three); > > To i

Re: I feel like an idiot...

2001-06-20 Thread Michael Fowler
On Wed, Jun 20, 2001 at 03:33:17PM -0500, Eric J. Wisti wrote: > @var is array {or list} @var is always an array. Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com --

Re: I feel like an idiot...

2001-06-20 Thread Eric J. Wisti
initialize an array, code like this: @array = qw(one two three); To initialize a hash, code like this: %hash = ( "Key A" => "Value A", "Key B" => "Value B"); On Wed, 20 Jun 2001, Tom Yarrish wrote: > Date: Wed, 20 Jun 2001 15:07:17 -0500 (C

Re: I feel like an idiot...

2001-06-20 Thread Chas Owens
> 113 > > 307 > > > > You might want to be more restrictive in your regex, if you don't want > > something like 11307 to match. > > > > As for Learning Perl 3, http://www.ora.com/catalog/lperl3/ says that > > "Learning Perl, 3rd Edition" is

Re: I feel like an idiot...

2001-06-20 Thread Chris Garringer
#x27;keys' from %hash: > > 305 > 113 > 307 > > You might want to be more restrictive in your regex, if you don't want > something like 11307 to match. > > As for Learning Perl 3, http://www.ora.com/catalog/lperl3/ says that > "Learning Perl, 3rd Edition&qu

Re: I feel like an idiot...

2001-06-20 Thread Tom Yarrish
omething like 11307 to match. > > As for Learning Perl 3, http://www.ora.com/catalog/lperl3/ says that > "Learning Perl, 3rd Edition" is due out next month (July 2001). > http://www.bestbookbuys.com/books/compare/isbn/0596001320 says August > 2001. Maybe Randal can shed mor

Re: I feel like an idiot...

2001-06-20 Thread Eric J. Wisti
http://www.bestbookbuys.com/books/compare/isbn/0596001320 says August 2001. Maybe Randal can shed more light on the pub date as he is one of the authors. FYI On Wed, 20 Jun 2001, Tom Yarrish wrote: > Date: Wed, 20 Jun 2001 13:51:13 -0500 (CDT) > From: Tom Yarrish <[EMAIL PROTECTED]> >

Re: I feel like an idiot...

2001-06-20 Thread Chris Garringer
Try $item=~/^\d{3}/; Chris D. Garringer LAN/WAN Manager Master Certified Netware Engineer Microsoft Certified Systems Engineer Certified Solaris Administrator Red Hat Certified Engineer [EMAIL PROTECTED] fax 713-896-5266 >>> Tom Yarrish <[EMAIL PROTECTED]> 06/20/01 01:51PM >>> Hey all, Well, th

I feel like an idiot...

2001-06-20 Thread Tom Yarrish
Hey all, Well, the subject says it all. Four days removed from a Perl class, and I feel like I'm forgetting everything (guess that's what happens when you don't take Randal's class ;p). Anyway, here's what I'm trying to do. I have a file that I'm reading into the program with an open command. E