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

Re: [PBML] Perl "if" condition question.-Another atempt

Expand Messages
  • merlyn@stonehenge.com
    ... Luinrandir if ( ( $DataP[2]-$DataP[3] )x5 eq @v2[10,12,43,60,142] ) Why did you expect @array eq @array to do anything useful? eq is for comparing
    Message 1 of 7 , Feb 23, 2005
      >>>>> "Luinrandir" == Luinrandir Hernsen <Luinrandir@...> writes:

      Luinrandir> if ( ("$DataP[2]-$DataP[3]")x5 eq @v2[10,12,43,60,142] )

      Why did you expect

      @array eq @array

      to do anything useful?

      "eq" is for comparing strings.

      --
      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
      See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    Your message has been successfully submitted and would be delivered to recipients shortly.