Basic HTML version of Foils prepared March 30 97

Foil 53 cmp <=> Binary Equality Operators (Chapter 15 of Llama Book)

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


1 We have already seen equality operators
  • == ,!= for numerically equal, unequal
  • eq , ne for stringwise equal, not equal
2 $a <=> $b returns -1,0,1 depending if $a is respectively numerically less than, equal to or greater than $b
3 $a cmp $b returns -1,0,1 depending if $a is respectively stringwise less than, equal to or greater than $b

in Table To:


© 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