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:
1 question

 



tosi
New User

Aug 7, 2008, 8:09 AM

Post #1 of 4 (503 views)
1 question Can't Post

ok I have a .txt on my pc that saves a HTML of a website , but the html keeps changing now there are 2 htmls with entirely different codes , how to know whenever first or second html is on the .txt


(This post was edited by tosi on Aug 7, 2008, 8:47 AM)


KevinR
Veteran


Aug 7, 2008, 10:26 AM

Post #2 of 4 (489 views)
Re: [tosi] 1 question [In reply to] Can't Post

find something unique to each file and search for that token in the files to know which one is saved in the file. Concept:


Code
if (/foo bar/) { 
file 1
}
elsif (/bash baz/) {
file 2
}
else {
not file 1 or file 2
}

-------------------------------------------------


tosi
New User

Aug 7, 2008, 11:21 AM

Post #3 of 4 (487 views)
Re: [KevinR] 1 question [In reply to] Can't Post


In Reply To
find something unique to each file and search for that token in the files to know which one is saved in the file. Concept:


Code
 if (/foo bar/) {  
file 1
}
elsif (/bash baz/) {
file 2
}
else {
not file 1 or file 2
}




I dont get that , and I found out something unique on both , theres "refresh" and "forgot"


KevinR
Veteran


Aug 7, 2008, 1:05 PM

Post #4 of 4 (485 views)
Re: [tosi] 1 question [In reply to] Can't Post

If you don't understand the concept or the code that I posted then you don't know any perl.
-------------------------------------------------

 
 


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

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