#perl
30 October 2007
Total 29 pages. You are browsing page 29/29.
First :: Prev :: [...] [25] [26] [27] [28] [29] :: Next :: Last
23:46 <****> what about the actual match - is there a better way to write?
23:46 <****> (and if they do, they should be positive regular expressions with the if/else reverted)
23:46 <****> unless you absolutely must deal with them
23:46 <****> mauke: so you cannot create it dynamically in the first place in that case?
23:46 <****> fasta: sub foo ($$$); foo(A,B,C) is effectively the same as foo(scalar(A), scalar(B), scalar(C))
23:47 <****> fasta: and since there are no lists in scalar context, A/B/C can't be lists
23:47 <****> mxmasster: $line =~ m{https?://(?:www\.)?foo\.com/}; is perfectly fine.
23:48 <****>(whatever); # no prototype checks
23:48 <****> dondelelcaro: if he was using Perl!
23:48 <****> mauke: I have only a vague idea of what that line does
23:48 <****> fasta: do you know common lisp? :-)
23:49 <****> fasta: are you being forced to use prototypes for some reason?
23:49 <****> mauke: I haven't written anything big, but I have some experience.
23:49 <****> (let ((ref #'foo)) (funcall ref whatever))
23:50 <****> Khisanth: heh. if he's not, 'taint my problem.
23:50 <****> dondelelcaro, so it was right - I was just matching everything with .*
23:51 <****> ok bye
23:51 <****> .* is for for being everything and nothing :)
23:51 <****> one more question - can anyone point me to a regex that will match fqdn's?
23:51 <****> s/for/fun/
23:52 <****> mauke: ok, I see. Still, I don't know why it would actually call the function.
23:52 <****> huh? it would call the function because I told it to
23:52 <****> fasta () tells it to act like a function
23:53 <****>( ) is funcall
23:53 <****>() dereferences and calls a function reference
23:53 <****> and (..)
23:53 <****> it's a single operator
23:53 <****> Yes, that's clear now.
23:53 <****> mmm
23:53 <****> too many chefs, also not enough syntax learning :)
23:54 <****>() dereferences and calls a function and () calls without dereferencing. no ?
23:54 <****> Khisanth who is the chef chef
23:54 <****> ?
23:54 <****> mxmasster: try looking for a module to do it. it all depends on the type of validation you're looking for, if you want to handle Punycode domains, etc...
23:54 <****>() is actually the more fundamental operation
23:55 <****>() are semantically equivalent or not
23:55 <****>(), more or less
23:55 <****> _abc_: $a() is a syntax error
23:55 <****> hm, &a()
23:55 <****> &a() is like a() except it ignores prototypes
23:55 <****> _abc_: don't do that
23:56 <****> which chef is right
23:56 <****> ok mauke
23:56 <****>()
23:56 <****> ah, now you'
23:56 * dwu throws some noodles at Khisanth.
23:56 <****> the one not using _abc_ as a nick :)
23:56 <****> re talking
23:56 <****> _abc_: what mauke said is true... but also, don't do that :-)
23:56 <****> Khisanth: Heh.
23:56 * Khisanth eats all the noodles in midair
23:56 * CPAN upload: Finance-Bank-Schwab-1.11 by MGRIMES
23:56 * iank eats all the noodles khisanth forgot about.
23:57 <****> Those are the most delicious.
23:57 <****> those are stale
23:57 <****> Fuck you, they're delicious.
23:57 <****> those are open source noodles. they keep multiplying like rice in the story ...
23:57 <****> GumbyBRAIN: I'm addicted to irc'ng at work. what should I do?
23:57 <****> What work do the stderr/stdout redirect.
23:57 <****> both ate all and there are still some left ...
--- Log closed Wed Oct 31 00:00:02 2007
Total 29 pages. You are browsing page 29/29.
First :: Prev :: [...] [25] [26] [27] [28] [29] :: Next :: Last
