#perl - Mon 23 Apr 2007 between 05:36 and 05:54



tag-oh no, no problem.
maashahi
v1d4l0k4now I know what you saying to me :)
tag-Ughhhhhhhhh
maashageneric question. is there a smart way to iterate over a list and at the same time remove elements from the list that fulfill some criteria and hence shorten the list and the number of iterations?
Patternerwhat method did you use for profiling and do the results really justify this question?
v1d4l0k4f00li5h?
f00li5hv1d4l0k4: hrm?
maashais it best to do recursion instead of looping?
v1d4l0k4In the for statement the $word is replaced or matched with the ERs? I don't know when =~ replaces or matches. As far as I know =~ do the same, right?
f00li5hmaasha: why not just use grep?
v1d4l0k4: s/// does replace, m// does match (if it's just //, it's m//)
v1d4l0k4hmm, nice explanation, ty again =]
f00li5hreading O'rly's pocketbook series teaches you to shorten things quite well
v1d4l0k4:)
I'll read, of course. More one question... s/$$regex[0]/${&}$$regex[1]/g What's the {&} inside ER? And why use $$ and not $ only?
f00li5h$& in perl var, i think it's "whole match" but i'm not sure
buuHELLO CHILDREN
f00li5hbuu! IT'S SOO GOOD TO SEE YOU AAGIAN!
buuYAY
f00li5hyou're just in time to help v1d4l0k4 port Lingua::PT::Hyphenate to php!
v1d4l0k4f00li5h: hmm... no problem, at least now I have an idea :)
buuYay!
jqlthat's what we said
buuI'm so happy.
f00li5h: Have I mentioned how awesome marc warren is?
f00li5hbuu: i think you may have
actionCPAN upload: Mail-vpopmail-0.60b3 by JKISTER
CPANupload: Mail-vpopmail-0.60b3 by JKISTER
v1d4l0k4I'm learn many things here... 90% what I need to learn :)
buuf00li5h: This is a really well done movie.
f00li5hbuu: which one?
buuf00li5h: Hogfather
f00li5hi see
v1d4l0k4Last question, I think... what's the '$word =~ y/.//d;' statement can do?
buuLet me introduce you to the wonders of perldoc
v1d4l0k4oO
f00li5hv1d4l0k4: y is tr, short for transliteration (IIRC)
eval: 15**3
buubotf00li5h: 3375
f00li5heval: 16**3

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 

IrcArchive