| jagerman | And you admit it? |
| action | f00li5h can't remmeber the episode of buffy that covered perl programminng |
| f00li5h | can't remmeber the episode of buffy that covered perl programminng |
| Patterner | PHP was 1x10. 2x02 is self explanatory. Perl is probably 3x08. ("Nightmares", "Some Assembly Required", "Lover's Walk" :) |
| f00li5h | Patterner: that explains it, i'm only half way through series 2 |
| LinuxMafia | what is going on with WWW::Mechanize? it can not connect |
| f00li5h | are you/do you need to use a proxy? |
| Patterner | I would bet that it isn't the fault of WWW::M |
| LinuxMafia | dont think so should I? let me print my code somewher |
| action | jagerman suggests the URL in the topic |
| jagerman | suggests the URL in the topic |
| LinuxMafia | oh i guess it is becaus e of new (autocheck=>1) |
| anabain | is it possible to make that perl writes something at a position indicated by pos() function? |
| PerlJam | anabain: almost anything is possible. |
| jagerman | Except for completing an infinite loop. You'll have to wait for perl6 for that. |
| f00li5h | Patterner: unless everyone knows it's abad idea, then it's possible, but nobody will tell you how to do it |
| anabain | if this is included in almost, how can I make it? |
| jagerman | anabain: Sounds like you want substr |
| alester | anabain: Take a look at http://perl101.org/strings.html see if that helps |
| anabain | thanks alester |
| alester | anabain: Are you replacing one string inside of another? |
| anabain | alester, I want to delete temporarily a group of characters but retain their position and then, after performing substitutions (which would be affected by these groups of strings), rewrite them to their original position |
| alester | Can you give specific exapmles so we can help you write the code? |
| PerlJam | anabain: you want to keep track of their original position even if it moves due to the substitutions? |
| anabain | yes PerlJam, if I can manage the alterations in positions... alester, I'm writing a script to help formatting a latex source from pdf and html masters |
| alester | anabain: So what do you want to replace with what? |
| anabain | I use pdftotext and html. With the second one I get a list of words/sentences that will be italicized. This file is tested against the transformed pdf into txt |
| alester | So you want to change all "foo" into "<i>foo</i>"? |
| anabain | but the problem is that the pdf-converted file contains a latex command to include page numbers |
| PerlJam | anabain: You could convert the strings to something you're not likely to substitute and keep them in a lookup table to put back afterwards. |
| anabain | and when this command is in the middle of the word/sentence to be tested, this is not replaced properly |
| alester | I've lost interest in this. |
| NOTevil | it's a google job application puzzle. |
| anabain | PerlJam, for example: "word1 word2" won't match against "word1 \latex-command word2" |
| PerlJam | oh, I see. |
| anabain | PerlJam, that's why I wanted to keep track of the positions. But perhaps it would be better store pieces of adjacent strings... |