Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with substituting

Status
Not open for further replies.

calabama

Programmer
Feb 19, 2001
180
US
Hello,

Every time I substitute these variables only the $code variable prints. I never see the $stats variable print.

I have tried many variations but I am clearly not interpreting something correctly.

Any Ideas

Thanks

Code:
my $statholder = &quot;<BODY>&quot;;
my $code = &quot;<BODY>&quot;;
my $stats  = &quot;<!--#exec cgi='\/cgi-local\/axis\/ax.pl'-->&quot;;

$checksize1 =~ s/$statholder/$code $stats/g;
In the begining
Let us first assume that there was nothing to begin with.
 
just a hunch but since this looked like a server parsed file and it could be that the file '/cgi-local/axis/ax.pl' is non-existant or producing an error..
the server replaces all the server side directives when sending the output to browser..

---
cheers!
san.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top