M
mechanicscart
Hey all
Trying to modify a html file with a while statement and can't
see to get it to work just right. Here's what I'm trying to do
$change .= s/\%%$option_d_name%%/ ${$option_v_name}/g,;
# $changes will be multi lines
open (FILE, "<./$location") ||
&errorcode(__FILE__, __LINE__, "./
$location", "$!", "print", "FILE OPEN ERROR", "0");
while (<FILE>)
{
$changes;
s/\%%$option_d_name%%/ ${$option_v_name}/g;
#why does s/\%%$option_d_name%%/ ${$option_v_name}/g; work,
# but $changes does not?
$database_fields[$db{"options"}] .= $_;
}
close (FILE);
}
Thanks
Trying to modify a html file with a while statement and can't
see to get it to work just right. Here's what I'm trying to do
$change .= s/\%%$option_d_name%%/ ${$option_v_name}/g,;
# $changes will be multi lines
open (FILE, "<./$location") ||
&errorcode(__FILE__, __LINE__, "./
$location", "$!", "print", "FILE OPEN ERROR", "0");
while (<FILE>)
{
$changes;
s/\%%$option_d_name%%/ ${$option_v_name}/g;
#why does s/\%%$option_d_name%%/ ${$option_v_name}/g; work,
# but $changes does not?
$database_fields[$db{"options"}] .= $_;
}
close (FILE);
}
Thanks