Basic HTML version of Foils prepared Sept 20 97

Foil 11 Operators for Numbers and Strings II -- Comparison

From Tutorial on PERL Computational Science for Information Age Course CPS616 -- Sept 20 97. by Geoffrey C. Fox,Nancy McCracken,Tom Scavo


There are six basic comparison operators which are DIFFERENT for numeric and string comparisons. Here PERL is using operators to create context to define type
There are a complex set of precedence rules but I always use parentheses and do not remember rules!
  • "CPS" . (12*50) # is string "CPS600"



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Sep 21 1997