CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Post deleted by abelsgmx

 



abelsgmx
Novice

Apr 3, 2002, 5:41 PM

Post #1 of 4 (802 views)
Post deleted by abelsgmx

 


Jasmine
Administrator / Moderator

Apr 3, 2002, 8:51 PM

Post #2 of 4 (801 views)
Re: [abelsgmx] Two Characters Matching [In reply to] Can't Post

You're wanting to match 2 characters, but just comparing $line[1] (which is b) to b? The comparison -- $line eq 'b' is true.


Ralph
Novice

Apr 19, 2002, 11:40 PM

Post #3 of 4 (790 views)
Re: [abelsgmx] Two Characters Matching [In reply to] Can't Post

If you didn't know, for the first entry in a list in 0, not 1.


dsb
stranger

Apr 20, 2002, 5:46 PM

Post #4 of 4 (784 views)
Re: [abelsgmx] Two Characters Matching [In reply to] Can't Post

Not sure I really understand the question. You say you want to match 2 characters but you are only testing against 1 character.

Also, if you are checking to see whether an entire line(based on the name of your array) is matching only 2 characters, you may want to readup on regular expressions.

_______________________

dsb
PerlGuy

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives