| wozzeck | i 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 |
| hobbs | wozzeck: show it more sensitivity and love :) |
| wozzeck | oh 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/.../; |
| wozzeck | Why? |
| jshriver | how does this sound: @filelist = grep {$_ !~ /^\.\.?/ } readdir(DIR); |
| hobbs | jshriver: like you weren't paying complete attention :) |
| Ani-_ | wozzeck: easier to read. Less likely to make mistakes. (As in, mistaking quotes for backticks, ...) |
| wozzeck | what kind of idiot would do that? :) |
| hobbs | trailing {0,} quantifiers at the end of a regex and not in a capture are a definite sign of a mistake :) |
| Ani-_ | wozzeck: you. :) |
| wozzeck | y'arr :( |
| jshriver | lol ok that works thanks :) is grep part of the standard perl package? |
| Ani-_ | wozzeck: in fact, I will use qx#...#, not qx//. |
| jshriver | appreciate 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? |
| hobbs | Ani-_: 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. :) |
| hobbs | they 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) |
| hobbs | q{} qq{} qx{} qr{} are pretty good too though :) |
| Ani-_ | if ($some_var =~ m#some_regex#) { # GET A DECENT EDITOR! ... eval: m#some_(?#fff)regex#; |
| buubot | Ani-_: Error: Sequence (? incomplete in regex; marked by <-- HERE in m/some_(? <-- HERE / at eval line 1. |
| hobbs | Ani-_: cruel ;) |
| Ani-_ | eval: m#some_(?\#fff)regex#; |
| BlacKSacrificE | if they can tolerate you, they can deal with me. |
| f00li5h | yes, but both? |
| BlacKSacrificE | valid arguement |
| f00li5h | anyway, it's just gone 1300, so it's time for breakfast |