@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22



Comments:

<0> peterS: Consider: Portland, Oregon: PDX
<1> hobbs: true enough. apparently there's a story behind Chicago O'Hare (ORD) but I forget what it is. a name change, I guess.
<2> I would like to run my own, if that's possible.
<3> peterS: from "Old Orchard", is what I heard
<0> Los Angeles, California: LAX
<4> hobbs, if i just wrap the eval {} inside the function it won't be able to access the variables at the top, right?
<1> and Kansas City International is, of all things, MCI
<3> bnovc: what?
<0> Exactly.
<3> bnovc: that doesn't make any sense
<4> hobbs, where can the eval {} effectively be put
<3> bnovc: around the code you want protected
<5> isn't there a flag that just checks the script for syntax errors
<5> maybe you can run with that flag
<5> capture the output
<5> and if it says "error"



<5> you know the script won't run
<5> perl -c
<1> yeah, eval { } is the usual way to accomplish the same
<4> thank god it works now :)
<1> though, if you're exposing a service to the world, you probably need some safeguards like 'use Safe'
<4> i'm not exposing
<4> that might be cool though
<1> yes, we've tried to hack buu's bot, or at least crash it. he's obviously doing something to prevent certain things
<4> since i dont know very much about perl i didn't want to allow arbitrary perl execution :P
<4> my bot executes javascript through any browser, php, and tcl though
<6> i think o'hare originally had a different name, but they kept the original code
<5> => cat snafu.pl
<5> for(my i=0;$i<=10;$i++) { print $i, "\n" }
<5> [intertwingled.net::leontopod::-bash] ~ (Sat May 13 00:08:22)
<5> => perl -c snafu.pl
<5> No such cl*** i at snafu.pl line 1, near "(my i"
<5> syntax error at snafu.pl line 1, near "my i="
<5> snafu.pl had compilation errors.
<5> well that will catch compile-time errors
<5> but not run-time errors
<3> Teratogex: HOORAY FLOODING
<5> hobbs =)
<4> i'm going to ***ume regex matches are a lot faster in perl than most languages?
<5> I should have pastebotted it, yah
<0> Yes.
<3> jt_: ABE is a fun one for that... sort of
<0> And you could've gotten away with the line where it says, "Syntax error near my i="
<0> eval: my i = 1;
<7> ew73: Error: No such cl*** i at (eval 109) line 1, near "; my i" syntax error at (eval 109) line 1, near "my i ="
<6> hobbs, hehe
<5> so run perl -c on the script, capture the output through redirection (2>&1) ??? and that will tell you if there is a compile time error
<5> runtime errors are another problem =/.
<1> Teratogex: thanks for the travel tips, I'll seriously consider the bus
<5> peterS, sure
<1> we'll see what I think of that hundred and two degrees
<3> jt_: theoretically they could have LVI, but changing codes would be a major h***le ;)
<5> right
<6> what would LVI stand for?
<3> jt_: Lehigh Valley International
<1> hmmm, a comparison between my city and yours right now is instructive. according to METAR, I've got 54 degrees, you've got 88 degrees
<6> ahm, heeh
<5> my outdoor thermometer is reading 88 degrees
<3> And it's an amazing 44F here. Cold front :(
<5> it'll cool down to about 79 later on and I will open the windows and turn on the box fans
<5> =)
<1> heh
<5> I don't like running the a/c unless I absolutely have to
<6> we've got about 10" of rain in the last couple days here in NE
<5> we need rain, badly
<1> that's new england?
<6> yep
<5> where in New England? I used to live in Reading, M***
<1> here in the midwest, I think of NE as Nebraska
<6> ah yeah.. i live near hartford, ct, but i'm originally from RI
<6> i know where Reading is though
<5> if you are ever up in the Salem New Hampshire area make sure to check out Clam Haven on Route 28
<5> best fish and chips in the known universe
<5> =)
<6> oh yeah.. i probably shouldn't say NE
<5> that restaurant has been there so long it's a landmark
<5> people navigate by it



<8> what?
<6> hehe sounds good
<8> heh
<5> best fish and chips I've ever had
<5> peterS, speaking of the middle west, do you know what iowa stands for?
<1> a thing to keep in mind. I don't intend to travel that direction any time soon, unfortunately. not that I wouldn't like to.
<3> for a few hundred miles worth of I-95 in the midatlantic US you get giant billboards for Dirty ****'s Crab House ("I got my crabs at Dirty ****'s!")
<1> Teratogex: do tell. minnesotans are full of iowa jokes but we don't make many of them here in kansas
<5> Idiots Out Walking Around
<6> haha
<6> haha to the **** crabs thing
<1> minnesotans talk about birds flying upside-down over minn, because they're saving it all for iowa
<5> heheh
<1> later, folks - I'd better go off and do stuff like actually get ready to travel in the morning
<5> right!
<1> I'll wave at you as I go by University and Rural
<6> have fun peterS
<5> ok
<1> thanks
<6> i'll wave as i fly over you
<1> yah
<9> hobbs: there is a burger chain in Seattle called "****'s Burgers". There also happens to be one in the gay district of town called Capitol Hill. So everyone says "I'm going to go get some ****'s on Capitol Hill."
<5> it would be cool if there really was a Big Kahuna Burger chain
<5> (I just watched Pulp Fiction earlier)
<9> Teratogex: there's one just called 'Kahuna Baa-gaa' here in Tokyo
<9> really is a hawaiian burger joint, too.
<4> is there something like: my $output = system("ls");
<4> i dont see how on the perldoc system page
<3> bnovc: perldoc perlop, "I/O Operators"
<10> perlop - Perl operators and precedence. To access this perldoc please type, at a command line, 'perldoc perlop'. You may also find it at http://perldoc.perl.org/perlop.html
<1> use multi-argument open()
<2> bnovc, are you trying to get the output of "ls" into $output?
<4> eggzeck, yep
<2> bnovc, @output = `ls -l`;
<4> ah ok, thats easier
<1> yeah, qx() aka `` is the other way
<4> thanks :)
<4> perldoc -f implode
<4> erm does that exist?
<3> bnovc: join
<3> bnovc: and the converse is split
<4> thanks :)
<4> sorry i dont know these names yet
<2> hehe
<2> bnovc, then you can iterate over @output and even use regex to match what you want.
<4> well i actually just used ls as an example and i want the whole output
<4> my $output = join(`ls`); ?
<4> er
<4> my $output = join(' ', `ls`); ?
<2> the whole output will be contained in @output, each line is one element of the array
<3> bnovc: forget that, just my $output = `ls`; -- that operator is context-sensitive.
<4> yep that's what i figured
<1> or join('', `ls`). you already have \n as a separator, don't really need a space
<4> thats why i wanted to join
<3> you get the entire output in scalar context, and a list of lines in list context
<4> oh ok, so $output = `ls` is fine?
<4> it knows which you want based on whether $ or @
<3> more or less
<3> context is a very important part of perl, and I'd really suggest learning it from a book
<1> yeah, the short version is, lots of functions know the difference and return different things depending on what context they are in
<1> so you have to pay attention, especially with built-in functions (user-defined functions often don't bother to distinguish, though they certainly *can*)
<3> I think it's Conway's Law that you can't infer the behavior of a function in scalar context from its behavior in list context
<4> awesome this worked very well :)
<3> but it could be someone else's
<4> this is a lot more fun and easier than tcl
<4> i should really get some sleep
<4> thanks for all your help everyone
<5> tcl is half-baked
<3> Teratogex is 75% baked
<3> peterS: Wikipedia gives O'Hare as having been "Orchard Place"
<1> *nod*
<1> wikipedia is the ultimate triumph of the notion of always believing what you read on the internet (:
<11> hmm aby body used net::jabber?
<11> anybody*


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

distcc failed to exec i686-pc-linux-gnu-g++
different wallpapers xubuntu
regex quantifiers + *
devians dir
_glXLastContext
disable ip3945
#linux
#mysql
gentoo x64 with 32-bit compatibility?
mediawiki Allowed memory size of 20971520 bytes exhausted (tried to allocate



Home  |  disclaimer  |  contact  |  submit quotes