Help for this page

Select Code to Download


  1. or download this
    c:\test>perl -Mstrict -MData::Dump=pp 
    -wle"my @r=1..10; @{ @r }='a'..'c'; pp \@r"
    ["a", "b", "c"]
    
  2. or download this
    c:\test>\perl510\bin\perl -MData::Dump=pp 
    -wle"my @r=1..10; @{ @r }='a'..'c'; pp \@r"
    ...
    c:\test>\perl510\bin\perl -Mstrict -MData::Dump=pp 
    -wle"my @r=1..10; @{ @r }='a'..'c'; pp \@r"
    Can't use string ("10") as an ARRAY ref while "strict refs" in use at 
    +-e line 1.