
simonodell
New User
Dec 22, 2005, 2:31 PM
Post #1 of 2
(437 views)
|
substitution prob
|
Can't Post
|
|
hi, ive got stumped by a substitution that just refuses to work. the following is part of a datafile which is part html part "ecsl" a simple scripting language im working on. some html guff> <?ecsl-- open dataset (userpages); repeat <a href=action.pl?template=template01&username=!!username!!password=!!password!!&pagename=%pagename%&action=edit>%pagetitle% </a><br> until endofset; ecsl--?> <more html guff my code can sucessfully extract the ecsl code and parse it, but im having trouble putting the result back in the place originally occupied by the code for output to the browser. my substitute command reads : $codestring = "\x3C\x3F $ECSLCODECHUNKS{$key} \x3F\x3E"; $output = "the result of the ecsl interpret"; $page =~ s/$codestring/$output/gxim; --------- the ECSLCODECHUNKS hash key when printed out looks identical to the original code but the substitute just cant seem to find it. HELP
|