Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] if(scalar @sf < 2)

Expand Messages
  • Jeff 'japhy' Pinyan
    ... Well, the scalar isn t necessary here, because using an array where a scalar is expected causes the array to return its size (the number of elements it
    Message 1 of 2 , Mar 23, 2005
    • 0 Attachment
      On Mar 23, Yuji Leon said:

      > may i know what is this means?
      >
      > if(scalar @sf < 2)

      Well, the 'scalar' isn't necessary here, because using an array where a
      scalar is expected causes the array to return its size (the number of
      elements it holds). This is saying "if the number of elements in @sf is
      less than 2...".

      --
      Jeff "japhy" Pinyan % How can we ever be the sold short or
      RPI Acacia Brother #734 % the cheated, we who for every service
      http://japhy.perlmonk.org/ % have long ago been overpaid?
      http://www.perlmonks.org/ % -- Meister Eckhart
    Your message has been successfully submitted and would be delivered to recipients shortly.