#perl - Wed 28 Mar 2007 between 23:29 and 23:40



buubotThe paste 414537 has been copied to http://erxz.com/pb/1951
f00li5hLeoNerd: open it for writing
LeoNerd: you know that already
Randalperlbot, paste > lewis2
f00li5hlewis2: open the file for writing and it will be created/truncated as needed
Randalfor future reference
jagermanOpen the kitty for writing?
f00li5hRandal: can we just have buubot automatically send that when it lifts the paste?
i would suggest it to buu, but he'll just tell me to send patches
Randalf00li5h - I would send patches to buu. :)
LeoNerdf00li5h: er... Does that even compile?
f00li5hsee, 10 seconds for you, about 16 months for me
LeoNerd: sadly not
lewis2the file exists already. I want it to be emptied after I have read it.
LeoNerdAhh.. :/ shame
f00li5hlewis2: open it to read, unlink it, then open to write
lewis2: (may act strangely with hard links or things that count inodes)
lewis2: use lexical file handles and 3 arg open too
lewis2in effect, all I want to do is run the command '>file'
Randal{ open my $x, ">", "thing to empty" }
f00li5ham i the only one that doesn't see an image of an alien head on erxz.com?
lewis2Randal: apologies, is that correct: open my $x, ">", $QUERYLOG;
f00li5hlewis2: you may want to name your file handle more usefully
danilomalguien habla espaol?
f00li5hdanilom: my terminal doesn't even recognise those characters
danilomjeje
f00li5hbut you're in luck, i'm ok with english
danilomok
lewis2f00li5h: the file was already opened (http://erxz.com/pb/1951) - is there a shorter command than the one above then?
danilomi need to make some customize in sql-ledger do you know it?
f00li5hlewis2: keystrokes are cheap
danilom: isn't that in php?
lewis2for instance: truncate <Q>;
danilomf00li5h, no is in perl with postgresql
f00li5hdanilom: oh, rly?
danilomyeah
f00li5hlewis2: open is fine
danilom: sexy.
danilomf00li5h, im looking for someone to do it..
lewis2should I then close it again?

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 106 113 120 

IrcArchive