Knowing which commands work with one another can help you come quickly up to speed on the Perl functions that are available to you. This page provdes a functional grouping of Perl commands. You'll notice that the Perl commands serve many of the same kinds of functions that you're used to having available for your VB programs. Just by inspection you will be able to surmise the capability offerred by many of the commands, even if you don't know the exact syntax.
---------------------------- --------------- ------------- ------------
Strings Math Real Arrays Hash Arrays
---------------------------- --------------- ------------- ------------
chomp oct sprintf abs log pop delete
chop ord substr atan2 oct push each
chr pack tr/// cos rand shift exists
crypt print uc exp sin splice keys
hex printf ucfirst int sqrt unshift values
index q/STRING? y/// strand
lc qq/STRING/
lcfirst reverse
length rindex
---------------------------- -------------- --------- ----------- ---------
Files / Folders Fixef Length Scoping Misc Modules
---------------------------- -------------- --------- ----------- ---------
-X glob seek pack caller defined do
chdir getc select read import dump exec
chmod ioctl stat syscall local eval import
chown link symlink sysread my formline no
chroot lstat tell syswrite package local package
close mkdir telldir use my require
closedir open truncate reset use
eof opendir umask scalar
fcntl readlink unlink undef
fileno rename utime wantarray
flock rewinddir write
format rmdir
--------------------- -------------- ----------------- --------
Regular Expressions List Control Loops Time
--------------------- -------------- ----------------- --------
m// grep caller goto gmtime
pos join continue last localtime
quotemeta map die next time
s/// qw/STRING/ do redo times
split reverse dump return sleep
study sort eval sub wait
unpack exit wantarray
-------------------------------------------------------- ------------------
LOOPS AND CONDITIONAL Classes/Objects
-------------------------------------------------------- ------------------
bless
if (expression) dbmclose
unless (expression) dbmopen
while (expression) package
until (expression) ref
tie
(expression) if (expression) tied
(expression) unless (expression)
(expression) while (expression)
(expression) until (expression)
if (expression) { ... } elsif (expression) { ... } else { ... }
label: while (expression) { ... } continue { ... }
label: for (expression; expression; expression) { ... }
label: foreach variable (list) { ... }
label: { ... } continue { ... }
I've not included those Perl functions which are involved with process management, user/group information or network function of Perl. For additional information turn to the Perl documentation that is distributed with all Perl installations.
discuss this topic to forum
