Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: using a string as a SCALAR ref while "strict refs" in use

by daxim (Curate)
on Jun 19, 2012 at 11:19 UTC ( [id://977030]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://977030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-23 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found