Re: Strange regular expression

2009-03-15 Thread Chas. Owens
On Mon, Mar 16, 2009 at 01:39, boll wrote: > I'm trying to use the random_image.pl program from the nms-cgi project on > sourceforge.net. > > This line has me baffled: >        if ( $baseurl !~ m%/$% ) > > > I don't understand the function of the percent symbols. I hope someone can > explain what

Re: Strange regular expression

2009-03-15 Thread Owen
> I'm trying to use the random_image.pl program from the nms-cgi project > on sourceforge.net. > > This line has me baffled: > > if ( $baseurl !~ m%/$% ) > > > I don't understand the function of the percent symbols. > I hope someone can explain what it's doing. you can define matching crite

Strange regular expression

2009-03-15 Thread boll
I'm trying to use the random_image.pl program from the nms-cgi project on sourceforge.net. This line has me baffled: if ( $baseurl !~ m%/$% ) I don't understand the function of the percent symbols. I hope someone can explain what it's doing. Here's the complete program: 1 #