Feedback on: Reading and Writing to Files on the Server
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Nice article... was looking for some good examples on flock!
Found 'em!
Technical:
Just right
Comments:
The example of the script that you listed is not working properly. Just an FYI.
Worth:
Worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
Not enough security issues were addressed. opening pipel;ines can open securitty holes. And with out form validation users can fool the script into executing shell commands
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
Length:
Too short
Comments:
The title stated that you were read and WRITING to a file. But no where did I see anything about writing to a file. I've been to MANY sites that do the exact same thing. I am trying to write to a file data that is being read in from another computer using perl. Could you email me a way to write to a file. Thanks.