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: [BillKSmith] Possibly a variable scope problem ...: Edit Log



reld
Novice

May 29, 2013, 6:12 AM


Views: 548
Re: [BillKSmith] Possibly a variable scope problem ...

I've attached some files. Put them all in the same directory for the PERL program to work.

data.txt contains the words separated by commas to be matched against the html code in 1.htm. I have written the PERL program to only match the first value for each line in the data.txt to keep it simple.

The print $name; statement in the inner most loop is only outputting "TLCTLC", whereas the print $name in the while loop above outputs "TLCModuleAddBBS".


(This post was edited by reld on May 29, 2013, 6:16 AM)
Attachments: main.pl (1.26 KB)
  data.txt (0.13 KB)
  1.htm (39.3 KB)


Edit Log:
Post edited by reld (Novice) on May 29, 2013, 6:12 AM
Post edited by reld (Novice) on May 29, 2013, 6:16 AM


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

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