Help for this page

Select Code to Download


  1. or download this
    P:\test>c:\perl561\bin\perl5.6.1.exe \bin\p1.pl
    perl> $bigScalar = 'the quick brown fox jumps over the laxy dog';;
    ...
    dog
    dog
    dog
    
  2. or download this
    perl> $bigScalar = 'the quick brown fox jumps over the laxy dog';;
    
    ...
    the
    laxy
    dog
    
  3. or download this
    P:\test>c:\perl5.8.5\bin\perl5.8.5.exe \bin\p1.pl
    perl> $bigScalar = 'the quick brown fox jumps over the laxy dog';;
    ...
    r th
     la
    y do
    
  4. or download this
    perl> $s = 'abcde';;
    perl> $lv = \ substr $s, 1, 3;;
    ...
    perl> print $$lv;;
    123                   ## The lvref stil refers to a 3 char substring.
                          ## this could be adjusted to reflect the new len
    +gth.