Help for this page

Select Code to Download


  1. or download this
    $ perl -wMstrict -Mdiagnostics -le 'my @array; print defined(@array)'
    Can't use 'defined(@array)' (Maybe you should just omit the defined()?
    +) at -e
    ...
    
    $ perl -wMstrict -le 'my @array=(undef); print @array?"true":"false"'
    true
    
  2. or download this
    $ perl -wMstrict -MData::Dump -e 'my @array; dd @array; $_="";
        @array = split(",",$_ ); dd @array'
    ()
    ()
    
  3. or download this
    $ perl -wMstrict -MData::Dump -e 'dd split /-|(x)/, "-", -1'
    ("", undef, "")