in reply to Re^4: Using Config::IniFiles Module Obtain Comma Separated Values into An Array
in thread Using Config::IniFiles Module Obtain Comma Separated Values into An Array

hehe, what corion said :)
package MyConfini; use parent qw/ Config::IniFiles /; sub MyConfini::arrayValBySpace { my( $self, @rest ) = @_; my @vals = $self->val( @rest ); if( @vals == 1 ){ @vals = split ' ', $vals[0]; } return vals; }
  • Comment on Re^5: Using Config::IniFiles Module Obtain Comma Separated Values into An Array
  • Download Code

Replies are listed 'Best First'.
Re^6: Using Config::IniFiles Module Obtain Comma Separated Values into An Array
by perlPsycho (Initiate) on May 27, 2016 at 09:55 UTC
    Thank you for your time,

    I cannot do this.
    I cannot use split or regex or anything other than the module's inbuilt function as i mentioned on the top of the Link's description.

    I am really close to the solution.

    I just need to make a modification on my config file.

    Thank you for going through the trouble of coding it here.

    Appreciate it a lot.
      I cannot use split or regex or anything other than the module's inbuilt function as i mentioned on the top of the Link's description.

      That is clearly in contradiction to the code which you posted in the root of this thread:

      tie %ini,'Config::IniFiles', (-file=>$sample); #... print "$_\n",for(@arr);

      Here you have used tie, print and for, none of which are the module's inbuilt functions. You have failed to meet your own arbitrary restrictions. Game over, player 1.

      A reply falls below the community's threshold of quality. You may see it by logging in.