| |
| |
| |
|
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
Comments:
<0> Thanks. <0> Who knew? <1> how do do $x = shift; print @$x; without using $x? <2> adante: @{ <anything that's an array ref here> } <3> eval: $x = [qw(one two three)]; @$x[1]; <4> eggzeck: two <3> I don't however understand your comment "without using $x". <1> basically i want to print @{shift} (except that doesn't work) <2> eggzeck: adante doesn't want to use a temp variable <5> @x = @{shift} ? <5> if he doesn't want to define a temp variable, he can use @_ <6> adante: @{+shift}; @{shift()} <5> what does @{+shift} do, buu? <1> gragh <1> what does @{shift} do?
<5> dereferences the arrayref in $_[0] <2> adante: tries to use an array called @shift <1> then what does @{shift()} do? <1> ahh right.. thanks guys <6> adante: @{shift} is basically @shift <2> adante: always use strict; <7> folks, why trying to install HTTP::Headers perl module from perl -MCPAN -e shell, at some point the build halts with 'Can't connect: IO::Socket::INET: connect: Connection refused', any ideas how to fix? <7> s/why/while <8> could someone please tell me how to get a # (hash) symbol in a regular expression? here is what I have..if($_ =~ /^NBSP: #/) { <8> can i simply escape it with \ ? <9> If I ever have a problem with a funny char, my first guess is to escape it <2> eZgRaNNy420: a # is just a # by default <8> oh ok nice.so it won't comment out the rest of the syntax? <9> but ($_ =~ /^NBSP: #/) is identical to (/^NBSP: #/) so you are doing extra typing for nothing <2> eZgRaNNy420: why would it? does it comment out the rest of the line in a string? did you bother to test it and see? <10> "jade" at 64.166.248.24 pasted "Can't connect: IO::Socket::INET: connect: Connection refused" (181 lines, 6.5K) at http://sial.org/pbot/17920 <0> perl -wle '$_="xx#xx"; print "MATCH!" if /#/' <8> no i'm a lazy *** sorry lmao <2> eZgRaNNy420: lazy? it took you more typing in here to find the answer that it would have on your own computer <0> Hello, Paladin`. <9> eval: $_ = "a###a"; print join '-', m/#+/g <4> jsn: ### 1 <8> nice <9> eval: $_ = "a###a"; print join '-', m/#{1,2}/g <4> jsn: ##-# 1 <6> I think anyone with a name like ' eZgRaNNy420 ' should be banned on site. <8> well thank god your not in charge <2> 'lo Yaakov <0> I wonder why perl users have a reputation for being arrogant jerks. <6> WE TRY HARDER THAN THEY DO <9> Can anyone explain to me why we register *** offenders, but not murderers? I just read the first explanation I ever heard from this 18th century Alembard guy. <2> Yaakov: because Perl is better than everything else.. and we know it.. so it comes accross as arrogance.. >:> <9> wrong channel, sorry <9> heh <6> jsn: THINK OF THE CHILREZN <0> Paladin`: *aigh* <11> buu: We can't let them be raped, but murder is fine <0> err <0> *sigh* <2> heh <6> dabreegster: Well, logically speaking *** offenders are probably far more likely to randomly/indiscriminately reoffend <11> buu: Statistics, bah <9> well, are *** offenders the most likely to reoffend? <9> The reason I read is a longish quote, but you'll bear with me, because I am an arrogant perl programmer <11> buu: Speaking of protecting the rights of criminals... Why has FEMA been protecting the names of past criminals? They could be in somebody's neighborhood and the residents have no clue. <9> Crimes against religion ought to be punished by a privation of those advantages which religion procures; crimes against morality, by shame; crimes against the public tranquillity, by imprisonment or banishment; crimes against its security, by more grievous punishments. <6> dabreegster: well, I could argue that it's the moral thing to do <11> buu: So innocent people with kids don't know who is dangerous? <11> buu: True, they should make that judgement themselves and look after their kid, but still. <6> dabreegster: The poitn of the prison is to punish/rehabillitate.. they shouldn't be punished *after* being released, as it were <6> Or if they aren't safe, they shouldn't be released. Alternatively. <6> dabreegster: And looking at it from a rather sane perspective, there are enough false positive *** offenders that I'm fairly concerned about increasing the punishment any more <11> buu: Er, down here, people are given too many chances. Complete retards are allowed to drive. Criminals get second chances. Even if they're dangerous, sometimes <9> Maybe shame is a better punishment for people who have only been immoral. <9> Well, that's what Alembart was saying in "The Analysis of the Spirit of Laws" quote I provided, I think. <9> like *** or drug crimes, say <6> Oh noes. Cockney rhyming slang. <9> registered drug and prostitution... wifey gets to know what you've been up to <12> jsn: I don't want to start a flame war at all, just curious...who gets to decide what's immoral? seems a bit sketchy to me.
<9> whatever method is used to decide crimes, those crimes which aren't against other people. (that seems to sum it up nicely, it was off the cuff though) <12> jsn: that's a fair statement I suppose, though there are many things that are considered crimes that IMO shouldn't be, but now I seem to steeping on the soapbox, so i will sit back down now. :) <12> s/steeping/stepping <9> we probably agree on some of those crimes. <6> flecto: Usually the majority defines morality =] <9> but, anyway, I am off to watch Alphaville through to the end. This is a very strange movie. Maybe the best ever. <9> Ciao for Now. <12> buu: that's what is supposed to happen, but it seems to me we are gravitating towards what the majority of lobbyists want is what happens. Again, (if you are in USA) our fault though. We (as a group) just don't care enough. <6> flecto: Well, it's a bit complicated. <12> buu: s/a bit/very ;) <6> flecto: You could very well make an argument that the majority in say, saudia arabia doesn't support the current morality laws <12> buu: perhaps it's just conjecture, but from what I see, I sigh and tend to lose hope of the current state of politics in the USA. I don't presume to have the answers or even know enough to make an educated suggestion. My gut just tells me when something is rotten. <12> buu: it's a shame that politics disgusts and does not interest me, yet I am very p***ionate about the laws/legislation that is produced from the same. <6> flecto: Well, I feel sort of the same way, but I'm solaced by the fact that people have been saying that for 200 years =] <12> buu: true, but (again conjecture) it seems to me that 200 years ago, we as a people were more apt to take a stand and do something about what troubles us rather than bitch about it on myspace...and yes, i am fully aware, that I am bitching about it on irc. I loathe myself. :D <13> Damnit oracle is being such a whore <6> flecto: Heh, they said that one too.. <12> buu: :) I have hope they did. <14> 200 years ago the majority were Christian, with Christian Values and Ethics, now it is not so. And.... anyone who says stuff like "abortion is bad" or "same *** marriages" are bad, is attacked instead of rallied upon, like 200 years ago. <6> tempered: ROFL <6> tempered: ROFL HAHAHA <14> what's so funny? <6> tempered: You're completely wrong. <14> USA was founded on freedom of religious persecution, by Judeo-Christians, that's not wrong at all. <14> that's fact :) <6> tempered: Sure thing buddy. <6> Next you'll be telling me washington was a christian <15> except for the non-Christain founders <6> Yeah, except for all of them. <12> Thomas Jefferson++ <12> :) <15> I think you mean (Thomas Jefferson)++ <12> thrig: indeed <12> :) <12> thrig: but George Jefferson deserves one too. Movin' on up...movin' on up... <0> Hey, thrig. <16> hello.. <17> 'lo <16> quick question - is there any way to disable error reporting entirely in perl? <16> I'm writing a screen scraper with WWW:Mechanize <16> and it keeps giving parsing errors in the output <6> YES <13> although <13> sqlplus's HTML output and w3m make a pretty fun optimization <13> err <13> sqlplus's HTML output and w3m make a pretty fun combination <17> pnm: well.. check the docs for it.. does it have a way to turn off the modules warnings? <16> Paladin: supposedly, but they still seem to show up, even with $agent->quiet(1); <16> I guess it's an issue with the module <18> Hi, I keep having problems with perl and threading, I get this error: A thread exited while 2 threads were running. So evidently the main thread is exiting without waiting for the program to finish <18> How do I stop this from happening? <0> Don't use threads! <0> Nevermind, that's not helpful. <0> But, honestly, fork() or POE is better for purl multitasking. <18> How do I patch this? <0> You could also look at Event to go with fork(). <0> (Event is a module.) <0> Threads in perl is very unpopular with people who really know about perl. <18> I **** at perl anyways, and I always will. <3> _tcc: Why would you say that? <0> Nola! <19> hi! <3> _tcc: It isn't hard to learn, if you learn from the correct source/sources, and of course, you must put forth real effort in trying to actually learn it. <20> lan <20> nere bura <19> I have a question, going to paste it up here... <21> the reason someone says that they ****s at something and always will is because that person has low self-esteem, eggzeck <21> s/****s/**** <10> "Nola" at 67.175.86.67 pasted "trying to use 'qw' to put my regex in a string" (18 lines, 279B) at http://sial.org/pbot/17921 <0> Nola: qr//! <18> I think I should read other peoples code more often though. <18> I _Never_ read other code <21> not if it ****s _tcc
Return to
#perl or Go to some related
logs:
#css #perl DSPAM agent misconfigured hash
INCOMPLETE MERGE gentoo #php libglade-WARNING **: Could not load support for `gnome' ProLiant dl360 ubuntu
fastest sparc64 distro desc table mysql php #gentoo
|
|