#perl - Thu 29 Mar 2007 between 18:24 and 00:01



wozzecki wish it wouldn't yell
Ani-_wozzeck: a) if you want to execute a command use system(...) or backticks, `...` b) if you want to remove a file use unlink. perldoc -f unlink
hobbswozzeck: show it more sensitivity and love :)
wozzeckoh son of a bitch, i thought i had put in backticks
damn you tilda key
Ani-_wozzeck: note that you can also use qx(...) or qx/.../ instead of the backticks.
wozzeck: in fact, I almost never use ``. I prefer qx/.../;
wozzeckWhy?
jshriverhow does this sound: @filelist = grep {$_ !~ /^\.\.?/ } readdir(DIR);
hobbsjshriver: like you weren't paying complete attention :)
Ani-_wozzeck: easier to read. Less likely to make mistakes. (As in, mistaking quotes for backticks, ...)
wozzeckwhat kind of idiot would do that? :)
hobbstrailing {0,} quantifiers at the end of a regex and not in a capture are a definite sign of a mistake :)
Ani-_wozzeck: you. :)
wozzecky'arr :(
jshriverlol
ok that works thanks :)
is grep part of the standard perl package?
Ani-_wozzeck: in fact, I will use qx#...#, not qx//.
jshriverappreciate all the help :)
Ani-_(Reason for not using qx//: qx/some_command \/some\/dir/; is ugly. qx#some_command /some/dir#; isn't)
jshriver: how can you appreciate all the help if you don't read it all?
hobbsAni-_: Some peoples' editors get confused by ## in quotelikes and they yell at me. But I like them too, nice and fat :)
that should probably be "some people's", odd as it looks. Stupid English.
Ani-_Why do you care about someone else's editor? :)
Tell them to get a decent one. :)
hobbsthey don't always take well to that
I'm talking about cow orkers, not random internet folks. :)
Ani-_Then it means you are not using ## enough. :)
Use it everywhere you can. Eventually they'll switch. (Or fire you)
hobbsq{} qq{} qx{} qr{} are pretty good too though :)
Ani-_if ($some_var =~ m#some_regex#) { # GET A DECENT EDITOR! ...
eval: m#some_(?#fff)regex#;
buubotAni-_: Error: Sequence (? incomplete in regex; marked by <-- HERE in m/some_(? <-- HERE / at eval line 1.
hobbsAni-_: cruel ;)
Ani-_eval: m#some_(?\#fff)regex#;
BlacKSacrificEif they can tolerate you, they can deal with me.
f00li5hyes, but both?
BlacKSacrificEvalid arguement
f00li5hanyway, it's just gone 1300, so it's time for breakfast

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 

IrcArchive