in reply to Re: Test if list is range
in thread Test if list is range

There might be a way

$ perl -MO=Deparse -e " use Data::Dump; dd [ 1,2,3 ] " use Data::Dump; dd([1, 2, 3]); -e syntax OK $ perl -MO=Deparse -e " use Data::Dump; dd [ 1..3 ] " use Data::Dump; dd([1..3]); -e syntax OK

Replies are listed 'Best First'.
Re^3: Test if list is range
by LanX (Saint) on Sep 30, 2012 at 11:45 UTC
    for this you need to know where in the source an array variable was set ....

    Its like trying to determine if ones grandparents where married by screening his bloodsample.

    Cheers Rolf

      for this you need to know where an array variable was defined .... Its like trying to determine if ones grandparents where married by screening his bloodsample.

      And how is that important?