@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> mhm
<0> so here's a newb one. I've got a script that edits a few html files and adds data. Works good only problem is for some reason it prints the entire contents of the script into the file it edits



<1> Why do you say it works good?
<1> Sounds like it's doing a mess.
<1> And quite frankly I'm not sure I understand what your problem is... "prints the entire contents of the sctrip"...
<0> hah sorry.
<0> i'll elaborate
<0> the code that *is* the script
<0> $'s and all that jimmer jam



<0> finds its way into the content of the file it's editing
<0> such as I start with a text file that contains "hello" and end with a duplicate of the script itself plus "hello"
<0> saved over the file it edited
<0> something else to note, since it's editing many files it also grabs the previous file and adds it to the next file and so on. the size growth is exponential
<0> it seems as if it's not closing whatever read function it's using before adding to a file


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

#linux
priya rya
#india
zxcvbnmasdfghjklqwertyuiop0123456789
#chat-world
#vb
PCSOLUTIONSTODAY.COM
maple_leaf[1]
#india
#india



Home  |  disclaimer  |  contact  |  submit quotes