[ic] How to access PERL Environment Variables?

Steve & Patti Getzinger steveandpatti@wubs.org
Fri, 10 Nov 2000 07:20:50 -0600


[if session browser =~ MSIE]

This is one I am using to switch code for browser. In this particular case
since IE does not support the spacer tag I insert a clear image to make up the
space. Naturally if not IE it inserts the the spacer tag which causes a faster
load time since the page does not require the images to be loaded. I do not
remember what I used to pull the actual output that "told" me MSIE was what I
wanted to use for the comparrison. Maybe try [session browser] If that works
just apply [session referer] or whatever ENV you want.

Hope that helps
Steve

Ed LaFrance wrote:

> You would think there would be something in IC for this by now - and
> perhaps there is, though it is likely to be undocumented.  But then, maybe
> you can "roll your own":
>
> http://www.minivend.com/minivend/minivend-list/1998-old/0826.html
>
> http://www.minivend.com/minivend/minivend-list/1998-old/0774.html
>
> At 02:54 PM 11/9/00 -0800, you wrote:
> >[SNIP]
> >
> >Thanks a lot Spencer!
> >
> >So that does it for Session variables... how do I access the standard
> >PERL Environment variables, such as:
> >
> >     $ENV{'REMOTE_HOST'}
> >     $ENV{'HTTP_USER_AGENT'}
> >     etc...
> >
> >Anyone have any ideas?
> >
> >_______________________________________________
> >Interchange-users mailing list
> >Interchange-users@www.minivend.com
> >http://www.minivend.com/mailman/listinfo/interchange-users
>
>  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> New Media E.M.S.               Software Solutions for Business
> 463 Main St., Suite D          edl@newmediaems.com
> Placerville, CA  95667         http://www.newmediaems.com
> (530) 622-9421                 (866) 519-4680 Toll-Free
>  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@www.minivend.com
> http://www.minivend.com/mailman/listinfo/interchange-users

--
=========================================================
  WDI                          Steve & Patti Getzinger
  702 Lincolnway West          steveandpatti@wubs.org
  South Bend, IN  46616        http://www.wubs.org/
  219-287-4700 (Main Office)   317-535-0239 (Direct Line)
=========================================================