Greg Oster wrote:
> Scott Walde writes:
>
>> some of my uncommented historical perl code comes back to haunt me:
>>
>> $titles[$x]=~s/^.*\/([^\/]+)\.\w+$\..*/$1/;
>>
>
> take: blah/foo/bar/baz.something
> and convert it to: baz
>
>
Yup. (I didn't bother thinking it through, but figured that from context.)
> Do I get a cookie?
>
>
use CGI;
my $form = new CGI;
my $cookie = $form->cookie(-name=>'sessionID',
-value=>'GregO',
-expires=>'+1h',
-domain=>'.slg.org');
print $form->header(-type=>'text/html',
-cookie=>$cookie,
-charset=>'utf-7');
> Later...
>
ttyl
srw
Received on Fri Feb 9 14:46:50 2007
This archive was generated by hypermail 2.1.8 : Fri Feb 09 2007 - 14:47:24 CST