P is for Practical | |
PerlMonks |
Re: How do I select first string of a two dimensional array to compare to other values?by choroba (Cardinal) |
on Aug 30, 2015 at 23:17 UTC ( [id://1140476]=note: print w/replies, xml ) | Need Help?? |
Hi joi1369, welcome to the Monastery!
I don't understand your question. It's usually better to include sample input data (within <code> tags) and expected output. If you want to work with the first line only, don't use while. If you want to compare two string values, you should use eq, ne, or index, or maybe a regex: $value =~ /\Q$important/. Update: example script added:
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|