Bronston has asked for the wisdom of the Perl Monks concerning the following question:
I have a site I built and have come near the end of its construction but there's something I can't figure out how to do. Basically I need the main script to open my page's html frontend and search for a string then append a link to another page, so all the links can be organized neatly/alphabetically on the page. So far I've setup a number comments/reference points on my html page for the script to look for
<!a> <!b> <!c> <!d>
and so on. Also in my script I have
To get the first letter of the input string which could easily be plugged into "<!$alphacity>". I just need to know how to tell the script to look for that and append to the following line in the html file. Any help would be awesome.my $alphcity = substr($city, 0, 1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: search for string append in file
by oko1 (Deacon) on Dec 25, 2010 at 05:15 UTC | |
by Bronston (Novice) on Dec 25, 2010 at 18:58 UTC | |
|
Re: search for string append in file
by Anonymous Monk on Dec 25, 2010 at 01:40 UTC | |
by Bronston (Novice) on Dec 25, 2010 at 01:50 UTC | |
by Anonymous Monk on Dec 25, 2010 at 02:04 UTC | |
by Bronston (Novice) on Dec 25, 2010 at 02:06 UTC |