Apologies for not answering your question, but I was distracted by your "blasphemous coding technique" (as you put it) - or as I'd put it - bad indentation, style, etc. Please don't place 4 separate statements on the same line!
my ($title) = /title=(".*?")/; ($title) =~ s/"/'/g; ($title) =~ + s/^\s+//g;($title) =~ s/\s+$//g;
Please properly indent things like for loops and other blocks. This is just one example, but you really lose a lot of information/visual cues that can help make heads or tails out of your code.
foreach $i(0 .. $#fields) { s/^\s+//, s/\s+$// for $fields[$i]; #print "\$fields[$i]:$fields[$i] \n"; }
Honestly, it's not that difficult to clean things up manually - but if you just can't coerce yourself into some structure, at the very least, please run your code through perltidy. I (and perhaps many others) won't read your code, much less help you on it, otherwise.
$,=42;for(34,0,-3,9,-11,11,-17,7,-5){$*.=pack'c'=>$,+=$_}for(reverse s +plit//=>$* ){$%++?$ %%2?push@C,$_,$":push@c,$_,$":(push@C,$_,$")&&push@c,$"}$C[$# +C]=$/;($#C >$#c)?($ c=\@C)&&($ C=\@c):($ c=\@c)&&($C=\@C);$%=$|;for(@$c){print$_^ +$$C[$%++]}
In reply to Re: data management script
by chargrill
in thread data management script
by mkahn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |