#perl - Wed 16 May 2007 between 00:01 and 00:38

NY Lost Funds



jagermanAnd you admit it?
actionf00li5h can't remmeber the episode of buffy that covered perl programminng
f00li5hcan't remmeber the episode of buffy that covered perl programminng
PatternerPHP was 1x10. 2x02 is self explanatory. Perl is probably 3x08.
("Nightmares", "Some Assembly Required", "Lover's Walk" :)
f00li5hPatterner: that explains it, i'm only half way through series 2
LinuxMafiawhat is going on with WWW::Mechanize?
it can not connect
f00li5hare you/do you need to use a proxy?
PatternerI would bet that it isn't the fault of WWW::M
LinuxMafiadont think so
should I?
let me print my code somewher
actionjagerman suggests the URL in the topic
jagermansuggests the URL in the topic
LinuxMafiaoh i guess it is becaus e of new (autocheck=>1)
anabainis it possible to make that perl writes something at a position indicated by pos() function?
PerlJamanabain: almost anything is possible.
jagermanExcept for completing an infinite loop. You'll have to wait for perl6 for that.
f00li5hPatterner: unless everyone knows it's abad idea, then it's possible, but nobody will tell you how to do it
anabainif this is included in almost, how can I make it?
jagermananabain: Sounds like you want substr
alesteranabain: Take a look at http://perl101.org/strings.html
see if that helps
anabainthanks alester
alesteranabain: Are you replacing one string inside of another?
anabainalester, 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
alesterCan you give specific exapmles so we can help you write the code?
PerlJamanabain: you want to keep track of their original position even if it moves due to the substitutions?
anabainyes 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
alesteranabain: So what do you want to replace with what?
anabainI 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
alesterSo you want to change all "foo" into "<i>foo</i>"?
anabainbut the problem is that the pdf-converted file contains a latex command to include page numbers
PerlJamanabain: You could convert the strings to something you're not likely to substitute and keep them in a lookup table to put back afterwards.
anabainand when this command is in the middle of the word/sentence to be tested, this is not replaced properly
alesterI've lost interest in this.
NOTevilit's a google job application puzzle.
anabainPerlJam, for example: "word1 word2" won't match against "word1 \latex-command word2"
PerlJamoh, I see.
anabainPerlJam, that's why I wanted to keep track of the positions. But perhaps it would be better store pieces of adjacent strings...

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 

IrcArchive

NY Lost Funds