Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Loops and comparisons

by snax (Hermit)
on Oct 15, 2003 at 13:28 UTC ( [id://299409]=note: print w/replies, xml ) Need Help??


in reply to Loops and comparisons

You say:

This comparison does not seem to be working:

if ($third_char ne 'c' || $third_char ne 'd'){ $part=substr($stri,0,2);
What is the mistake here?

I guess it depends upon what you mean by "not working"; I assume you are aware that it is unlikely that any single character would fail to satisfy your test?

:)

Draw a Venn diagram :) :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://299409]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found