| |
| |
| |
|
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
Comments:
<0> "This function adheres to the POSIX syntax for command line options, with GNU extensions. In general, this means that options have long names instead of single letters, and are introduced with a double dash "--". Support for bundling of command line options, as was the case with the more traditional single-letter approach, is provided but not enabled by default." <0> i think it is. Ill try downloading and compiling it instead <1> 'k <2> Oh, I'm an idiot. The fourth paragraph under "Getting started with Getopt::Long" <2> In the default configuration, options names may be abbreviated to <2> uniqueness, case does not matter, and a single dash is sufficient, even <2> for long option names. Also, options may be placed between non-option <2> arguments. See "Configuring Getopt::Long" for more details on how to <2> configure Getopt::Long. <2> Agh, sorry about that <3> if I have $v="hello"; $q = "$v world"; how can I evaluate $q to get a new string with "hello world" ? <4> wankit <5> Perl 6 takes no prisoners, but he does take their wives. <0> heh that did the trick, BinGOs <0> :)
<0> thanks.. <1> yay! <1> GumbyBRAIN: be m00kie_ <0> strange that it worked for 1.907 tho? <6> what platform are you using lowercase-starting filenames? <7> eydaimon: Read these: http://www.plover.com/~mjd/perl/varvarname.html http://www.plover.com/~mjd/perl/varvarname2.html <1> Scalar::Util is teh pesky. <3> Roderick: thanks much <4> perl ****s. *sigh* <4> I wish perl6 had been finished last year like it could have been s <1> Really the Net::OSCAR author should have checked his dependencies properly. <4> We were fairly accustomed to receive weird telegrams at Baker Street, but I have a particular recollection of one which reached us on a gloomy February morning, some seven or eight years ago, and gave Mr. Sherlock Holmes a puzzled quarter of an hour. <1> Lemon-entry, my dear Watson. <3> Roderick: I'm not operating on the value. I'm doing an eval on a statement, but I'd like to print debug info about what the statement resolves to when doing the eval <8> good morning <9> GumbyBRAIN: quadratic underwear <6> Underwear and the underwear. <7> Sorry, I don't follow that. <3> Roderick: the urls you gave me don't seem relevant. <4> Useless trivial: london underground ticket machines don't take scottish notes <7> That part I got, what I didn't get it what you're really trying to do. <7> s/it/is/ <3> ah <10> integral: WHAT? <10> That's an outrage <10> Hey, Roderick. :) <7> Hi there <4> The other good one are shop staff who've never heard of Clydesdale <10> I've never had a problem in shops, but I don't think I've ever tried to use any scottish notes in a machine <4> (And bank staff, furrfu) <1> perlbot: learn poco-irc as poco-irc is the short form for POE::Component::IRC and see http://www.gumbynet.org.uk/poe/ for details. <11> added poco-irc to the database <12> Ok.. random question. Almost everytime I write CGI's they use GET via HTTP. Where can I read up about how POST works? Other than sending a file, I've no experience with it. <3> $var = 5; $statement = '$var > 4'; eval $statement; <- I want to print $statement so I can see what's being compared. <3> course, doing a print $statement will just print '$var > 4' <13> godzirra_: As far as your programming is concerned, if you're not uploading the files, it's the same with, e.g., CGI.pm. As for what is sent, see http://www.w3.org/TR/html4/interact/forms.html#h-17.13 <12> Thanks woggle. <14> well, woot. perlmonk.org is down again. :( <13> godzirra_: For file uploads, see the documentation for CGI.pm's upload() method (or similar things for, say, CGI::Simple) <7> print eval 'qq{$statement}' # modulo dealing with a $statement which has unbalanced braces <3> Roderick: thanks :) <14> Roderick: well, it could still have '...}...{...' in it! <7> Perhaps simpler to escape " inside. print eval '"' . ((my $x = $statement) =~ s/(["\\])/\\$1/g)) . '"'; die if $@; <14> yeah, I'd say so <3> doesn't look simpler <14> it's not simpler in look, it's a simpler way to address the problem I mentioned. <7> That's because the first one isn't bullet proof. It's simpler than a bullet proof version of the first one. <3> gotcha <14> I fit all of these monstrosities inside / and I'll come alive / come alive <7> Oops, s/// doesn't return the right thing of course. print eval '"' . do { (my $x = $statement) =~ s/(["\\])/\\$1/g; $x } . '"'; <14> heh. <14> "s/// doesn't return the right thing" <14> I tend to agree with you, Roderick <15> japhy: fix it for 5.10 :) <16> I've got a quandry.. Someone in here offer an opinion? I've got a perl application that uses a perl SQL client to determine what to do with some data... I'd like to re-implement it without using MySQL.. I'm thinking in Tie::Hash::Regex using Storable::nstore to commit the data to disk.. <16> Thus far the only thing I've seen that'll do close to what I want is T::H::R <15> essobi_: what exactly do you want an opinion on? <17> If its already using DBI, I'd switch to SQLite if you're just trying to move away from MySQL... <15> essobi_: What dec just said <14> PerlJam: but it's not ***-backwards-compatible. <16> lol
<15> japhy: break it! <15> japhy: or figure a way to make it backwards compatible. <14> PerlJam: a string vs. integer magic variable? <14> like $! <14> the problem then becomes: does s/// modify its argument? <14> actually, there's the answer. <14> s///r <14> 'r' = 'return changed string' <15> there you go! <14> no bc issues <15> japhy++ <14> I just hope no one expects /r to be /reverse in perl 5 ;) <14> I suppose I could hack that in real easy. <16> Essentially.. I have two strings that are used to make the decision of what to do with the data.. and I've got this convoluted SQL query to find the closest ^ match of the strings.. <14> anyone have a better mnemonic than /r? <10> I think r is quite good <14> using /c for 'copy' is out. <15> japhy: /r works fine for mre. <15> er, me <14> MRE! <15> heh <16> I'm thinking MySQL is just waay over kill if I only need 10-20 thousand rows, that don't change that often.. <15> essobi_: SQLite isn't. <14> wow. it's been a while since I've gone dumpster^Wsource-code-diving <14> I need to remember what to do ;) <16> PerlJam True enough.. I was trying to avoid SQL and put it purely in the POE program, as it's threaded and very pissy about the database being unavailable since it's time critical delivery.. <16> SQLite support row level locking? :) <18> japhy: bump /e aside and use it (mnemonic: eject!) <15> essobi_: you've just said a bunch of stuff that make me think whoever created the perl app was insane :) <16> Hmm.. It's got acid compliact transactions. <16> PerlJam Thank you.. and no I've never been commited. :) <16> It's a UDP network transport program that decides where to send the UDP packet based on the contents of the packet itself.. <16> Hence why it gets pissy is MySQL get's held up.. <14> WTF is this "madskills" and "madprops" in toke.c? <16> lol <14> I don't even want to know. <16> I think the toke.c says it all. <14> toke.c, around line 10640 <4> japhy: it's larray's MAD for getting perl to reproduce exactly the source text by annotating the syntax tree heavily. <14> it's all over the place <4> I think it's horribly hackish, but that's just me. <14> ah. <14> what is "MAD"? <4> a description <15> for me to look I'll have to acutally download the perl source for the first time in a long time. I just don't have the energy :) <4> maybe <4> hmm, with ssh, it does that host RSA key fingerprinting thingie, but on the server, how do I interrogate it to find the finger print? <19> interrogate what? <16> Looking at SQLite.. makes me rethink all the stuff I've wrote with sleepycat.. Heh. <4> Brend: the sshd, obviously <4> so when my client says "the finger print is ...", I can actually check it <14> whew. luckily there's a PMf_UNUSED which is not used at all <14> otherwise the change I'd want to make is not even BINARY compatible :( <20> Hmm. I typed *something* into my irc.el window, and it disconnected me. <20> I hate that when that happens. <21> integral, man ssh-keygen /-B/ ?? <14> merlyn: did it spoil LOST for you? <14> or 24? <14> I hate it when THAT happens. <4> ah, that's a good idea <21> er, -l <4> it's irritating that this isn't sugared at all <4> since ssh prints a damn message when the thing changes, and asks you to contact your sysadmin. I am my sysadmin, and I haven't a clue. zs <20> what is LOST and 24? <20> oh - shows I don't watch. :) <8> the unit is the best show on TV <4> crap american TV <21> redundant <20> I spend far more time listening to my iPod than watching my tivo now <4> oh, maybe I wanted ssh-keyscan. s <22> what, no /etc/ssh/ssh_known_hosts management across your systems? <23> what does "-l" do for perl? <20> what "crap" and "american" ? :)
Return to
#perl or Go to some related
logs:
howto mkadm #gentoo xubuntu usb-keyboard ubuntu restore windows partition #perl #kernel WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT] smbd xubuntu #css #perl
|
|