@# 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 23 24 25 26 27 28 29



Comments:

<0> buu: That was _my_ idea of the perfect templating system, it wasn't petal
<1> I'm very new to perl
<2> i suppose PerlJam but that's pretty much against the whole seperation of concerns mantra
<3> jsn: Sure looked like it.
<4> jsn: it was very nearly petal
<3> jsn: I dislike petal because it's too hard to see the 'code' hidden in the content.
<2> Kurcz: perldoc CPAN will tell you
<5> Kurcz: Type 'perldoc CPAN' in your shell or go to http://perldoc.perl.org/CPAN.html
<6> jdv79: sure. It's good to have rules. But it's also good to be able to break the rules when you need to :)
<3> This package contains regular expressions for the following XML tokens: BaseChar, Ideographic, Letter, Digit, Extender, CombiningChar, NameChar, EntityRef, CharRef, Reference, Name, NmToken, and AttValue.
<3> Hrm. I suppose it isn't completely awful.
<0> buu, hobbs: Similar, but not. The other parts would be more perly still. <option perly:foreach="@array" perly:value="$_->{value}">$_->{html}</option>
<3> Ick.
<0> all templating requires learning new syntax.
<4> jsn: meh. Still functionally identical. Just written a bit differently
<2> ok



<0> buu: You like fake perl TT syntax better? <me action="shivers" />
<0> hobbs: the variables are _perl_ variables, not this made up /what/is/this? syntax
<0> the loops are named after perl loops
<0> while and foreach, not petal:repeat
<4> jsn: that's just candy. And not necessarily good candy.
<7> lo!
<3> jsn: Eh, dunno.
<2> anyone do any moosifications yet?
<0> I've used a lot of these templating systems, each thinks it has the perfect right to invent its own syntax, while I ***ert it should be subservient to its parent language
<0> heck, perly:while would be very cross-language, since all languages have a while
<0> well, all the ones I know
<0> What the heck is <% %> supposed to be? Where was I supposed to learn [% %]? These are made up.
<0> Of course, with namespace aliases, perly: would become p:
<2> sounds like a plan - why don't you put that in code:)
<0> Syntax highlighting for XML would also, the way I understand it, be easy to show.
<0> show the dynamic vs regular variables
<4> jsn: why do you want to introduce language constructs to _content_? Might as well go back to mason at that point :)
<0> hobbs: The basic perl variables are what is p***ed to the template, you can't demand simple scalars only, and if you are p***ing an array, the loop-over-array has to be in there somewhere.
<0> I supposed objects and even coderefs could be p***ed, but it is still easier than petal, because you'd be using normal object syntax, not the fact MyObj/MyMethod syntax (which requires weird bracing a lot of the time, anyway)
<2> moose
<4> jsn: Sorry, I meant language-specific constructs. Might as well simplify it a bit, make it more universal but still useful... and end up with something resembling TAL :)
<0> jdv79, Sadly, I don't know how to write parsers well at all (find @array and now what to do with it)
<8> I prefer TT to Mason for coding my websites
<8> because TT gets hard about the right time
<1> Can't locate XML/RegExp.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl/5.6.2 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/site_perl/5.8.8/XML/DOM.pm line 37.
<0> hobbs, It will resemble TAL, certainly. But be far more perly.
<1> what file do I need to get for this?
<8> unlike mason, which actually encourages controller and model code into the URL
<8> Kurcz - STOP THAT
<8> you need to get XML::RegExp
<8> most likely from the CPAN
<4> jsn: Anyway you don't have to write a parser. That's half the point of operating on XML
<0> hobbs, no? hmm
<8> you will be slapped if you paste again, so stop it
<1> thank you
<9> buubot: slap merlyn
<1> wow....didn't know it hurt to be nice
<8> you don't need a parser for XML, but you have to understand the semantics of what you got
<9> bad buubot. :)
<2> Kurcz: you're my hero
<10> hi
<2> are there any good books or materials on writing parsers actually?
<10> i need very quick help with answering some questions with perl
<8> Yeah, here it starts
<10> Name ways to create a loop: while, foreach, for, {{ }}
<2> short list
<11> map.
<1> jdv79: why is that?
<8> zOOz_ - go read learn.perl.org
<11> grep.
<11> goto.
<8> look at that
<11> redo.
<0> zOOz_, you taking a perl test?
<8> redo!
<8> this looks like homework or a test, yes.
<8> in either case, not smart to answer.
<4> jdv79: there's the one they call
<8> also not smart to have asked.
<11> jdv79: chapter 8 of Higher-Order perl is all about writing parsers.



<10> jsn: something like that. i need to do it in 20 min
<4> jdv79: there's the one they call "The Parser Book" but I don't recall the proper title ;)
<8> zOOz_ - you are cheating
<2> retardo: oh yeah:)
<8> cheaters are despised by most
<12> need to do it in 20 mins? why?
<8> because he's cheating on a test
<4> jdv79: and the HOP approach certainly is interesting :)
<0> SHAME ON zOOz_ ! ZZZRBT!
<8> someone please kickban the cheater.
<0> Rather, you should be ashamed, zOOz_
<2> hobbs: yeah, i started in on it but started to feel myself slipping into insanity so i put it down
<13> why is perl the preferred scripting language to write exploits/
<4> merlyn: We're on freenode. We have to be _nice_ to total losers.
<4> like defcon8_
<8> heh
<8> defcon8_ - s/exploits/$random_code/
<13> hobbs, **** you too
<13> bloody hell
<8> and it's not a scripting language
<13> programming language
<8> any language with closures is not a scripting language :)
<8> and we'll be getting continuations soon
<2> merlyn++
<13> merlyn, why is it preferred to python ofr instance?
<8> because hackers hate to indent. :)
<8> because overall, it's a better language than python
<14> hello. how do i get the length of an array? :)
<8> use the array name in a scalar context, norc
<12> cpan & been around longer?
<14> merlyn: ok, thanks. :)
<15> $length = @array
<13> merlyn, why do you think it is?
<16> OK, this is lovely... Terminal.app changes it's beep based on what I select for iChat.
<8> why do I think it is what?
<13> apart from the abundance of libraries
<13> it is better than python
<16> :/
<8> Because I've played with both
<8> and the libraries are an important part
<8> you can't isolate that
<8> much larger community as well
<13> i'm talking about the language
<4> defcon8_: because python is made of hatred.
<8> the langauge includes the libraries
<13> :O
<17> I have written a logging system that works just like we want it to. One exception, if something (like CPAN code we didn't write but use) writes to STDERR, that's not in the log. The log isn't an open file handle so I can't just dup STDERR to it
<13> is there something as simple as twisted?
<13> for perl
<8> yes - POE
<8> see poe.perl.org
<18> guys, what's the best way to express the character cl*** ['#$]
<8> "express"
<4> erikh: I think you just did :)
<18> for reasons I think are pretty obvious, perl does not like that.
<8> ['#\$]
<17> Any ideas on how to capture the STDERR traffic and redirect it into a method
<0> So that's what twisted is/
<18> merlyn: that doesn't add \ to the cl***?
<0> s#/#.#
<9> Is the escape really needed? :/
<11> tie STDERR.
<8> wwalker - you could fork and grab the kid's stderr
<8> tie won't work if they also fork
<4> wwalker: you can tie STDERR for a usually-good-enough solution
<13> for there such things as list comprehensions?
<8> the tie won't apply to the children
<9> eval: $_='$'m/['#$] ? "Match" : "No Match"
<5> Ani-_: Error: Search pattern not terminated at (eval 134) line 15.
<0> tee STDERR ?
<9> eval: $_='$'m/['#$]/ ? "Match" : "No Match"
<5> Ani-_: Error: syntax error at (eval 134) line 15, near "'$'m/['#$]/"
<13> and stuff like for x in enumarate(list)
<8> defcon8_ - you're bordering on trolling now


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

syzygy- efnet
#gaim
#linux
#python
php chwon
Aishia Chia
#css
#mysql
ubuntu Gdk-WARNING **: cannot set locale modifiers
unable to logon because of an account restriction



Home  |  disclaimer  |  contact  |  submit quotes