Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Perl >> Snippet

29 Command Summary


int        int (50.5)            # returns integer portion,    use printf function for rounding)
length     length ( "mylist" )    # length of string
lc         uc ( "Dog Star" )       # lower case
uc         uc ( "dog star" )       # upper case
cos        cos (50)              # cosine in radians
rand       rand (5)              # random number 0 to less than argument,  0-1 if argument omitted