| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Comments:
<0> dazjorz: Why? <1> dabreegster: No x-window or anything, just that <2> cool <3> StevenR: I've even got networking working. <2> BinGOs: from qemu? <3> aye. <0> dazjorz: Haha. Couldn't kill it from another VT? <1> dabreegster: No idea how to access the help function... <2> BinGOs: cool :)...i only had a very brief play with it <0> BinGOs: We're a village? Can we burn ourselves down? <1> dabreegster: Yeah, that's what I eventually did - but it toke me a while to get that idea in all the panic. ;) <1> dabreegster: if VT means virtual terminal - no, I was actually _behind_ it, I had only 6 TTY's <4> It takes a village to ...err... something... a buu. <0> dazjorz: It's not instinctive to use another shell? First day with the system? <3> pesky hurd only comes with emacs as an editor surprisingly enough.
<1> dabreegster: Yeah, usually it is <5> it takes a village to villify <1> dabreegster: In the time I had that keyboard (with the nonworking ctrl), I had to close much programs that way. <1> dabreegster: I also remember being unable to get out of a screen. <0> dazjorz: A real hardware terminal? Wow. I've been looking for one of those for nostalgia. <6> buu <0> dazjorz: Nobody was around to help? <1> dabreegster: All on my own. ;) <7> arubin-: Where are you hiding? <1> dabreegster: I hated emacs after that <6> buu: I'm in the Higher Order Perl talk <6> back row <0> buu: I've always meant to ask you. Why are you named after an anime character? <7> dabreegster: I'm not. <5> I was named after Abraham Lincoln. <5> In fact, everyone currently alive was. :) <7> merlyn: Any idea where that drforr fellow is? <0> buu: OK. Well, google your name and consider one's first impression after looking at the results. <7> dabreegster: Well, yes, I know. This is an unfortunate coincidence. <0> buu: Did you just make a random noise with most of your mouth and write it down? That's what I did, sort of. <7> dabreegster: I think it was an acronym. <0> buu: Ooh! For what? Buu Ultra Undead? <7> Probably not, no. <7> heh <5> there's probably a precise way to calculate that <7> merlyn: There is apparently <0> Cause I'm getting really low values for all of my new roll() test cases. Oh well, if nobody does much damage, the world will be a peaceful place. <8> Is it possible to have perl open a file and substitute a line in that file without having to create a temp file? <7> tkup: Only if you don't change the number of bytes in the file. <5> tkup - yes, everything is possible <9> tkup: : of course <5> does having it all in memory count as a temp file? <1> Umm... <5> But yes, you can use Tie::File, which doesn't create a second file <1> I want to put a bit of code on a HTML page, while I want that Dreamweaver can still use the file as a HTML file <9> tkup: you can store your data for example in memory and then replace the line <1> would you kill me if I would use PHP? <10> use one of those complicated template system thingies <7> Hello beth! <9> dazjorz: for example embperl has options for that <8> buu, why is there such a limitation? <9> but why use dreamweaver anyway when jEdit is available :) <1> Yeah, I know and I've looked into it, but the options are far more limited than PHP <8> merlyn, is there a link where I can read about replacing lines in files? I'm not able to picture it <7> tkup: If you have to ask, you won't understand the answer. <5> tkup - "perldoc Tie::File" <11> Tie::File. To access this perldoc please type, at a command line, 'perldoc Tie::File'. You may also find it at http://perldoc.perl.org/Tie/File.html <8> merlyn, thanks <9> dazjorz: what options are far more limited? <1> realmerx: It's a lot of work for something that I can do in one minute <1> just rename the file to .php and I can add code <1> I can just add code to use a perl backend to do swtuff <1> stuff* <8> buu, I find it interesting that you underestimate my ability to understand. <9> dazjorz: I do not understand what options you refer to - dreamweavers, embperl? <12> tkup: it's not really that interesting. It's a normal ***umption based on years of experience.
<1> realmerx: I just want to be able to embed some Perl code in a HTML page, without having to make the whole page a Perl script with lots of heredocs <13> Hrm, i thought BEGINS{} were excecute again if something was used twice <12> EvanCarroll: eh? <5> EvanCarroll - do you bother reading at all? or do you just guess at things a lot? <8> PerlJam, for most, cockiness is a sign of decline. "double the pride, twice the fall." <8> was it star wars. damn I don't remember :) <5> was what star wars? <8> the quote <5> that line is not from star wars <12> tkup: Well, arrogance is par for the course around here. <5> unless you're including the three crappy ones <5> in which case, I wouldn't know or care. :) <8> ok it's "Twice the pride, double the fall". <8> anyway, back to work <14> how do you read a file and ***ign a line to a variable with perl ? <0> open FOO, "<foo"; then get the line. Is it the first? Is it one matching a pattern? <0> And don't forget to or die after open. <14> open(IN, "< input.txt") or die "cant open input file: $!"; <14> ok what is the $! for ? <0> OK. Which line do you want to get? <14> the first line in my test file <0> That's the error. perldoc perlvar <11> perlvar - Perl predefined variables. To access this perldoc please type, at a command line, 'perldoc perlvar'. You may also find it at http://perldoc.perl.org/perlvar.html <14> later i will have to edit it to take a line matching a pattern <14> but one step at a time... <0> So my $x = <IN>; <0> Later, loop through and match. while (<IN>) { if (m/pattern/) { $x = $_; last; } } But there might be more efficent ways. <13> merlyn: Go kill yourself. <14> what is $_ ? <15> Soul_keeper, perldoc perlvar <11> perlvar - Perl predefined variables. To access this perldoc please type, at a command line, 'perldoc perlvar'. You may also find it at http://perldoc.perl.org/perlvar.html <0> The current variable in a loop. Unless you say foreach my $current () {} <15> Soul_keeper, that will tell you about all of perl's predefined variables <16> What does this "$|++;" do? <15> jbalcomb, it increments $| <13> lol <15> somewhere later, you'll probably see a $|-- <16> q[ender]: =) <16> What is $|? <15> perldoc perlvar =P <15> huzzah! <14> that site times out <13> q[ender]: I think most of the time buffering is turned off liek that, it is done so for the whole duration <15> EvanCarroll, tell that to jbalcomb <15> Soul_keeper, use the perldoc on your system <15> Soul_keeper, perldoc is part of perl <16> q[ender] I don't have perldoc installed. :( <14> what is it ? <17> jbalcomb: consult your distroes package manager <15> jbalcomb, well then... install it :) <17> or use google <14> yeah <15> Soul_keeper, perl's documentation, which is quite stellar <13> perldoc vs buffering -- i suppose they saved a few chars <14> i tell noobs that all the time torbjorn <18> GLUE <18> I want gluue <15> blondie, perl makes great blue. just mix in a little horse hoof or something <16> haha.. yeah, see I came here because reading the doc only changes my question to "What does that mean?" <18> no, that's against my ethicas <18> -a <15> Soul_keeper, what OS are you using? <14> linux <15> ok then <14> i got perldoc installed <15> at a console, type perldoc perldoc <15> and also read perldoc perlvar <15> perlvar will tell you what $_ is <14> it ain't telling me what $_ is <15> sure it is <0> Soul_keeper: If you're in less, type /\$_ <16> It sure will and then you will wonder what the explanation means...
Return to
#perl or Go to some related
logs:
#python etch raid10 boot #php mysql select columnnames #web entrance_edit #ubuntu wpa dlink 524 fedora times new roman openoffice yum install #linux
|
|