glidden, matthew <[EMAIL PROTECTED]> wrote:
: 
: Just started working on scripts and wanted to compare
: strings yesterday, but using strEQ (or strcmp) gets me
: an undefined method error. What library should I "use"
: in my script to get those API? Couldn't find the answer
: in any on-line tutorials.

    I think(?) you're looking for 'cmp' which returns
-1, 0, or 1 depending on whether the left argument is
string wise less than, equal to, or greater than the
right argument.

$string[1] cmp $string[0]


    Take a look at perlop "Equality Operators".


HTH,

Charles K. Clarkson
-- 
Head Bottle Washer,
Clarkson Energy Homes, Inc.
Mobile Home Specialists
254 968-8328


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to