Perl Primer - University of California, Davis

Python Primer. Patrice Koehl. Modified by Xin Liu in Apr., 2011 . ... The first character of the name of a variable cannot be a digit. ... (‘sub’) Counts the number of instances of the substring ‘sub’ in the string a a.replace(‘sub1’,’sub2’,n) Returns a string equal to a, but with n instances of substring sub1 replaced with ... ................
................