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

Re: [PBML] More efficient script

Expand Messages
  • Paul.G
    Thanks again for everyone s input, much appreciated. ________________________________ From: Shawn H Corey To:
    Message 1 of 11 , Apr 6, 2012
    • 0 Attachment
      Thanks again for everyone's input, much appreciated.



      ________________________________
      From: Shawn H Corey <shawnhcorey@...>
      To: perl-beginner@yahoogroups.com
      Sent: Tuesday, 3 April 2012 11:30 PM
      Subject: Re: [PBML] More efficient script


       
      On 12-04-03 09:18 AM, Paul.G wrote:
      > my ($junk1, $junk2, $junk3, $PV) = split(/\s+/, $result);

      Unused items should be undef:

      my (undef, undef, undef, $PV) = split(/\s+/, $result);

      You could alternately use an index:

      my $PV = (split(/\s+/, $result))[3];

      --
      Just my 0.00000002 million dollars worth,
      Shawn

      Programming is as much about organization and communication
      as it is about coding.

      [updated for today's programmers]
      "Show me your code and conceal your interfaces, and I shall continue
      to be mystified. Show me your interfaces, and I won't usually need
      your code; it'll be obvious."
      -- Fred Brooks

      Don't be clever; being great is good enough.



      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.