Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: Reading and Writing to Files on the Server, October 26, 2000 at 09:50:31:

You are here: irt.org | About | Feedback | 1914 [ previous next ]

Feedback on:
Reading and Writing to Files on the Server

Sent by
Sher on October 26, 2000 at 09:50:31:

Worth:
Very worth reading

Comments:
I have a script that needs to read information from a data file on the server.

The data file is actually the contents of a recursive array such that it contains an array in an array:

file content:
["a",1,2,3,5],
["b",1,2,3,5],
["c",1,2,3,5],
["d",1,2,3,5],

In the script:
I tried to load the file into a temp scalar and then assign it to an array.

I get the length of the array by scalar(@array); to see if the contents are assigned to the array and it returns the number of elements as it should.

However when I try to access individual elements like:

$var= $array[1]->[2];
print "$var";

the script runs but there is no output.

I would be most grateful if you could advise.

thanks

Sher



Other feedback on 'Reading and Writing to Files on the Server' - show all

©2018 Martin Webb