I have a transform subroutine thats supposed to execute a transform and return a page based on authentication and sitecode (url) this is on iis and activestate perl
my url(s) for one product are of the form
a-z,
1,3.productname1help.com and the other side are
a-z1,5.productname2help.com, I would think if its not a match that it would just grab the proper transform but apparently it doesn't. How do I build the proper regex they are confusing to me. code example I know this is wrong..just not sure how to formulate this
sub transform
{
if (!$Session->{'isAuthenticated'})
{
if ($Request->ServerVariables("SERVER_NAME")->item()=~ /[a-z][1
+,3]&& productname1help/s')
{
#$Response->write("Hey its product1help address");
my $trns= $Server->MapPath("Transforms/pLogin.xsl");
return $trns;
}
of course this is going to be followed by the check for product2name which would call a different transform with additional elements