in reply to Unknown warnings/errors

m// is the "long hand" version of //, so the warning is probably referring to this:
($ENV{HTTP_USER_AGENT} =~ /MSIE/)
If so, that would mean that $ENV{HTTP_USER_AGENT} isn't defined (i.e. you don't have an HTTP_USER_AGENT environment variable set.

As a side note, you're probably better off using IE conditional comments to work around explorer's crappy CSS implementation.

Replies are listed 'Best First'.
Re^2: Unknown warnings/errors
by kmullin5016 (Acolyte) on Jan 29, 2007 at 21:14 UTC

    That makes sense. I'm usually running this from a web browser where it is set, but I'm running this in a test mode from a unix command line. Thank you.

      FYI, you can test ENV variables from the command line like so:

      $ HTTP_USER_AGENT=MSIE perl myscript.cgi

      Or:

      $ HTTP_USER_AGENT=FireFox perl myscript.cgi

      That is, put the environment variable name plus what value you want it to have, separated by an equals sign, immediately preceding your invocation of the script. Just a handy way to test things like that out.

      But I'll second Joost's advice (though not to the letter) and suggest dealing with goofy IE CSS implementations through plain CSS.



      --chargrill
      s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)