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

Re: [PBML] Can not read value with Win32::AdminMisc::ReadINI()

Expand Messages
  • Charles K. Clarkson
    ... From: Damien Carbery To: Sent: Friday, May 04, 2001 11:05 AM Subject: [PBML] Re: Can not read value
    Message 1 of 1 , May 5, 2001
    View Source
    • 0 Attachment
      ----- Original Message -----
      From: "Damien Carbery" <daymobrew@...>
      To: <perl-beginner@yahoogroups.com>
      Sent: Friday, May 04, 2001 11:05 AM
      Subject: [PBML] Re: Can not read value with Win32::AdminMisc::ReadINI()


      : The man of the long posts, Charles K. C., posted code to read and
      : write INI files:
      : http://groups.yahoo.com/group/perl-beginner/message/1706
      :
      : I've used the code and it works (though I think it looks for entries
      : with a space on either side of the equal signs).
      :

      You can fix that:
      change:
      $return{$heading}{$1} = $2 if /(\w+)\s=\s(.+)/;

      to:
      $return{$heading}{$1} = $2 if /(\w+)\s*=\s*(.+)/;

      HTH,
      Charles K. Clarkson
    Your message has been successfully submitted and would be delivered to recipients shortly.