Yurttas/PL/SL/perl/F/03/index page

From ZCubes Wiki
Revision as of 18:59, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<div class="divone"><span class="h4"> Dr. Salih Yurttas - [mailto:yurttas@zcubes.com yurttas@zcubes.com ] </span></div><div class="divone"><span class="h3"> programming lang...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Dr. Salih Yurttas - yurttas@zcubes.com
programming languages - design principles, implementation constructs
perl

  1. subroutines (functions, methods)


to declare without definition :

sub NAME
sub NAME PROTO
sub NAME       ATTRS
sub NAME PROTO ATTRS


to declare with definition, BLOCK is added :

sub NAME             BLOCK
sub NAME PROTO       BLOCK
sub NAME       ATTRS BLOCK
sub NAME PROTO ATTRS BLOCK


to create anonymous subroutine or closure, NAME is omitted :

sub             BLOCK
sub PROTO       BLOCK
sub       ATTRS BLOCK
sub PROTO ATTRS BLOCK

    1. subroutines (functions, methods)
    2. library functions

1 | perl language fundamentals << 3 >> pattern matching | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12