Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
written Sunday, July 23 2006 15:40ProfileHomepage#0
I started working on a Perl program to remove strings from a BoA script (the idea is to do a spell check on the strings, then use a diffent program to merge the corrected strings back in again). It's been a few months since I've used Perl, and I was never formally taught how to write data to a file. So predictably, I've gotten errors I don't know how to solve.
I've tried explicitly setting a variable to the result of <IN> instead of relying on $_, to no luck. After trying several different ways of coding it and inserting debug print statements, I get the feeling that the problem arises with:print OUT "$1\n";When I removed OUT (getting print to go to STDOUT), I got:Use of uninitialized value in concatenation (.) or stringAnyways, any help would be appreciated; Word doesn't catch all the errors when the strings are surrounded by code.
-------------------- Posts: 1509 |
Registered: Tuesday, January 10 2006 08:00
written Sunday, July 23 2006 16:24ProfileHomepage#1
Well, astring already does this. I can't find a download location anymore, possibly because Khoth's site went down.
-------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr.
written Sunday, July 23 2006 19:33ProfileHomepage#2
Couldn't Google astring either. Even if I could find it, I'd still like to know what I was doing wrong. This should be a relatively easy task.
-------------------- IF I EVER BECOME AN EVIL OVERLORD: I will hire one hopelessly stupid and incompetent lieutenant, but make sure that he is full of misinformation when I send him to capture the hero.Posts: 1509 |
Registered: Tuesday, January 10 2006 08:00
After reading the RegEx chapter over and over to find out why I couldn't capture the string under $1, I remembered that $ signifies the end of the pattern, not the beginning. Oops.
Anyways, here's the two programs. The intent is to do some spell-checking in between. After extensive testing (cough), the programs appear to function perfectly. Seeing the immense amount of attention this idea has received, I might come back to these programs later and make it possible for use outside of command line usage. :P
-------------------- Posts: 1509 |
Registered: Tuesday, January 10 2006 08:00