Okay. I added the missing semicolon and no change. I will go the hash route. The shell script that runs this passes the variable to the PERL script. Thanks for all the quick replies.
On Fri, Dec 20, 2013 at 10:54 AM, Michael Tiernan <michael.tier...@gmail.com > wrote: > I'm *NOT* good at this so I'll just pose a couple of questions to see if > it helps.... > > What do you get for values if you add thse two lines? > > print "$ARGV[0]\n"; #this prints the correct variable >> > > print "school=$school\n"; > $school="blank"; > > if ($ARGV[0] == "rc") {$school = "rc"} #This line is the only line >> evaluated. I always get this value >> elsif ($ARGV[0] == "bp") {$school = "bp";} >> > > The other thing I'd want to look at is the actual contents of the entire > string "$ARGV[0]", is it just those two characters or is it null terminated? > > -- > << MCT >> Michael C Tiernan. > http://www.linkedin.com/in/mtiernan > Non Impediti Ratione Cogatationis > -- John J. Boris, Sr. Online Services www.onlinesvc.com
_______________________________________________ Tech mailing list Tech@lists.lopsa.org https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/