Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^3: Assigning value to the array elements

by no_slogan (Deacon)
on Oct 28, 2005 at 15:08 UTC ( #503683=note: print w/replies, xml ) Need Help??

in reply to Re^2: Assigning value to the array elements
in thread Assigning value to the array elements

But i want to assign those values to some scalar variables which i will use in my program later for another use. If there is any alternative please suggest
Change the rest of the program so it doesn't expect the values to appear in scalar variables. Really. Your code will be much easier to understand if it says this:
my $first = $config_values{first}; open my $file, $first;
rather than just blithely saying the second line and leaving the poor reader to figure out how $first got its value.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://503683]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2018-08-19 15:19 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (186 votes). Check out past polls.