Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: syntax for while substr

by CukiMnstr (Deacon)
on Apr 16, 2002 at 17:58 UTC ( #159576=note: print w/replies, xml ) Need Help??


in reply to syntax for while substr

i think you want
while ((substr$_,0,19) !~ /objectclass: person/) { ... }

the "does not match" operator is !~, and not <>~

hope this helps,

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2020-02-19 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (80 votes). Check out past polls.

    Notices?