in reply to using a string as a SCALAR ref while "strict refs" in use

What does the interface to your app's config file look like? Perhaps we can suggest something better.
  • Comment on Re: using a string as a SCALAR ref while "strict refs" in use

Replies are listed 'Best First'.
Re^2: using a string as a SCALAR ref while "strict refs" in use
by xorl (Deacon) on Jun 19, 2012 at 11:32 UTC
    It's just a tie.
    use strict; use Tie::File; # skipping all sorts of fun to get to this: tie @array, 'Tie::File', "$mf_dir$filename", recsep => '}', autochomp +=> 0; $array[$user_section] =~ s/username =\> $username/username =\> $newuse +rname/; # or something like that