Basic HTML version of Foils prepared March 30 97

Foil 9 Operators for Numbers and Strings II -- Comparison (Chapter 2 of Llama Book)

From PERL4 Tutorial for CPS616 Computational Science for Information Age Course CPS616 -- February 1995. by Geoffrey C. Fox


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 Sat Sep 6 1997