[ic] help pulling info from URL

Grant interchange-users@icdevgroup.org
Fri Nov 1 21:07:00 2002


>On Fri, 1 Nov 2002 10:22:22 -0800
>"Grant" <listbox@email.com> wrote:
>
>>
>> >Time for you to go to Perl school
>>
>> Agreed.
>>
>> >to detect errors in my untested code <g>.
>> >
>> >[perl] ($Scratch->{pstn2}, $Scratch->{pstn3}) = (split(/\//,
>> >$Session->{last_url}))[2,3]; [/perl]
>> >
>> >Bye
>> >   Racke
>>
>> Still not working, I get:
>>
>> /category/salvador_dali_posters/p1.html
>> 2 ,
>>
>> with:
>>
>> [data session last_url]
>> <br />
>>
>> [perl] ($Scratch->{$pstn2}, $Scratch->{$pstn3}) = (split(/\//,
>> $Session->{last_u
>> rl}))[2,3]; [/perl]
>>
>> [scratch pstn2], [scratch pstn3]
>>
>> Anything else in there?
>
>You have too much bucks, i.e. you spend too much dollar signs :-(
>
>Bye
>      Racke

Awesome, works great.  Is there a way to turn "p1.html" into just "1" or
"p99.html" into "99"?  Thank for everyone's input!

- Grant