Hi, all --

It must still be early, because I just don't get this.

Given the snippet

  sub setpath(my $shelltype)
  {
    my ($setenv,$equals) ;
  #  $_[0] =~ /tcsh/ && $setenv = "setenv" ;
  #  $_[0] =~ /tcsh/ && { $setenv = "setenv" ; } ;
  #  $_[0] =~ /tcsh/ && { $setenv = 'setenv' ; } ;
  #  if $_[0] =~ /tcsh/
  #    {
  #      $setenv = "setenv" ;
  #      $equals = " " ;
  #    }
    $setenv = "setenv" if $_[0] =~ /tcsh/ ;
    $equals = " " if $_[0] =~ /tcsh/ ;
    $setenv = "" if $_[0] =~ /tcsh/ ;
    $equals = "=" if $_[0] =~ /bash/ ;

can you please tell me why the various commented formats don't work?  I'm
going to need to set multiple things, so the last commented version is
best, but even more I just plain don't like "action if test" format :-)

No, my Camel Book is still packed from the move, or I'd probably be able
to find this easily.


TIA & HAND

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg27090/pgp00000.pgp
Description: PGP signature

Reply via email to