in reply to Using Config::IniFiles Module Obtain Comma Separated Values into An Array

:) and what happens instead?
  • Comment on Re: Using Config::IniFiles Module Obtain Comma Separated Values into An Array

Replies are listed 'Best First'.
Re^2: Using Config::IniFiles Module Obtain Comma Separated Values into An Array
by perlPsycho (Initiate) on May 27, 2016 at 07:10 UTC
    Hello Anonymous Monk,

    I cant get the space separated value.

    I need a way to get the j= abc def ghi jkl mno pqrs tuv wxyz
    in a single line of code using a method of Config::IniFiles.

    like my
    @array=$cfg->arrayValBySpace('hello','j')

    Note:
    not as a single line like abc ... wxzy
    but as separate values like $arr[1]= abc , $arr\[[$#arr]=wxyz.
      Well, Config::IniFiles doesn't do that, it only supports newlines seperation, so the only way to get it, is to subclass/extend Config::IniFiles or ...
        Please do go on Anonymous Monk.

        I am listening.
        Okay How do I do that...??

        Please share a sample or snippet code if possible.

        Even a link would suffice..