CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [KevinR] How do I do this...: Edit Log



ichi
User

Jul 2, 2009, 4:42 PM


Views: 4413
Re: [KevinR] How do I do this...


In Reply To

In Reply To

In Reply To

In Reply To
So how do I make it only read .jp and only that not ad the g or any other letter after...?
Thanks again!

in this simple case, you don't need regex. Normal string checking will do
pseudocode:

Code
if (mystring == "jp" ){ 
........
}

use the equality operator.


== is for numbers
"eq" is for strings

that's one of the things i hate about Perl. Why have 2 syntax to check for equality. anyway, that said, its just a pseudocode for OP to explore, not a full solution.


(This post was edited by ichi on Jul 2, 2009, 4:43 PM)


Edit Log:
Post edited by ichi (User) on Jul 2, 2009, 4:43 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives