Help for this page

Select Code to Download


  1. or download this
    @days[3,4,5]   # same as ($days[3],$days[4],$days[5])
  2. or download this
        scalar( @days[3,4,5] )
        @days[ scalar( 3,4,5 ) ]
        scalar( ($days[3],$days[4],$days[5]) )
        $days[5]
    
  3. or download this
    @days[3,4,@a]   # same as ($days[3],$days[4],$days[@a])
  4. or download this
    ($map{'red'}, $map{'blue'}, $map{'green'}) = (0x00f, 0x0f0, 0xf00);
  5. or download this
    # same as map assignment above
    %map = ('red',0x00f,'blue',0x0f0,'green',0xf00);