Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

more info based on earlier question

Posted on 2002-03-21
3
158 Views
Last Modified: 2010-03-05
The earlier question was this
-------------------------------------------------------------------------------------------------------------------------------------------
i have a file 'motive.ini'. the values in the file are changed on a regular basis.
                     in my program i need to periodically update an array based on the contents of this file.
                     is it possible to do like this --
                     @array = require 'motive.ini';

                     or is there is some other way of doing this using require - this line has to be single line substitution
                     - P.S -- i cannot open the file, read from it and then push into the array.

                     thanks in advance...
---------------------------------------------------------------------------------------------------------------------------------------------
one more help -- the above code helps but if my file array.ini is
[xxx,http://www.hotmail.com,yyy,www.yahoo.com]
 the above code does not work - does the presence of special characters in the array make a difference? If so how do i change the code - help will be appreciated...
0
Comment
Question by:lakshminair
3 Comments
 
LVL 5

Accepted Solution

by:
Sapa earned 50 total points
ID: 6885124
enclose your literal constants into apostrophes.

['xxx','http://www.hotmail.com','yyy','www.yahoo.com']

0
 

Author Comment

by:lakshminair
ID: 6885150
thanx a lot for the reply - it does work...
0
 
LVL 8

Expert Comment

by:inq123
ID: 9490746
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept a comment by Sapa

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

inq123
EE Cleanup Volunteer
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question