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



abelsgmx
Novice

Apr 3, 2002, 5:41 PM


Views: 1597
Post deleted by abelsgmx

 


Jasmine
Administrator / Moderator

Apr 3, 2002, 8:51 PM


Views: 1596
Re: [abelsgmx] Two Characters Matching

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


Views: 1585
Re: [abelsgmx] Two Characters Matching

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


dsb
stranger

Apr 20, 2002, 5:46 PM


Views: 1579
Re: [abelsgmx] Two Characters Matching

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