Testing a scalier for two possible values at once

2009-05-13 Thread Adam Jimerson
I need to test a scalier to see if its value is not two possibilities, because this test is being done inside a while loop I can not use an elsif statement without things getting ugly. I have tried it like this if ($scalier nq 'A') || ($scalier nq 'B') { but that just gave me a syntax error wh

Re: Using hashes in a format

2009-01-18 Thread Adam Jimerson
"John W. Krahn" wrote: > Adam Jimerson wrote: >> I am working on a program that will act as a contact manager of sorts, >> it uses two hashes to store everything (although the second one is >> commented >> out because I am not ready to work with it). I am us

Re: Using hashes in a format

2009-01-18 Thread Adam Jimerson
(Randal L. Schwartz) wrote: >>>>>> "Adam" == Adam Jimerson writes: > > Adam> my %phone_numbers = (); > ... > Adam> $phone_numbers{$_} #needs to print the keys of the hash for the > name, and Adam> values for the phone number so it will be li

Using hashes in a format

2009-01-18 Thread Adam Jimerson
I am working on a program that will act as a contact manager of sorts, it uses two hashes to store everything (although the second one is commented out because I am not ready to work with it). I am using the format function to display everything but I don't know how to get it to show the keys

Re: Is there some IDE dedicated to perl?

2008-12-30 Thread Adam Jimerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sanket vaidya wrote: > > Instead of going for IDE It would be better to download Perl Interpreter & > use some editor. For Windows few editors are Crimson, Context, Perl Express > etc. I use Perl Express. > I played with Perl Express a bit and wasn'

Re: Reading a list of numbers from a file into a array

2008-10-29 Thread Adam Jimerson
Thanks for the help. "John W. Krahn" wrote: > vendion wrote: >> Hello I am having trouble finding the correct syntax for reading a >> list of numbers from a file, it is open and can read from it, I tried >> with >> while () { >> chomp; >> @some_array = $_; >> print "@some_array\n"; >> } > > my @