Re: Newbie: Has anyone used Tie::Hash::TwoWay

2008-02-04 Thread axtens
On Feb 4, 12:44 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: axtenswrote: On Feb 1, 10:00 am, [EMAIL PROTECTED] (Rob Dixon) wrote: axtenswrote: G'day everyone John As it happens, there are commas in the data, and they can be on either side of the the tab. What's more, I wanted to be able

Re: Newbie: Has anyone used Tie::Hash::TwoWay

2008-02-04 Thread John W. Krahn
John W. Krahn wrote: axtens wrote: On Feb 4, 12:44 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: axtens wrote: $res =~ s/\^/FS/ge; The /e option evaluates the FS string as perl code but it is not perl code so why use the /e option? As for the /e with the FS, the FS is actually a

Re: Newbie: Has anyone used Tie::Hash::TwoWay

2008-02-04 Thread John W. Krahn
axtens wrote: On Feb 4, 12:44 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: axtens wrote: $res =~ s/\^/FS/ge; The /e option evaluates the FS string as perl code but it is not perl code so why use the /e option? As for the /e with the FS, the FS is actually a constant for chr(28) which

Re: Newbie: Has anyone used Tie::Hash::TwoWay

2008-02-04 Thread axtens
On Feb 4, 9:11 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: John W. Krahn wrote: axtenswrote: On Feb 4, 12:44 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: John, You're blowing me away with all this kindness. Thanks. Bruce. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Newbie: Has anyone used Tie::Hash::TwoWay

2008-02-03 Thread axtens
On Feb 1, 10:00 am, [EMAIL PROTECTED] (Rob Dixon) wrote: axtenswrote: G'day everyone Thanks for that. I did, however, give up on using TwoWay and used an idea a colleague had given me, as below: sub Misspellings_Setup { @wordsList = split /\n/, '__WORDLIST__' abandonned abandoned

Re: Newbie: Has anyone used Tie::Hash::TwoWay

2008-02-03 Thread John W. Krahn
axtens wrote: On Feb 1, 10:00 am, [EMAIL PROTECTED] (Rob Dixon) wrote: axtenswrote: G'day everyone Thanks for that. I did, however, give up on using TwoWay and used an idea a colleague had given me, as below: sub Misspellings_Setup { @wordsList = split /\n/, '__WORDLIST__' abandonned

Newbie: Has anyone used Tie::Hash::TwoWay

2008-01-31 Thread axtens
G'day everyone I'm confused. I'm trying to make use of Tie::Hash::TwoWay to give me access to a dictionary of word = misspelling. Has anyone got any idea how I would use TwoWay for this? Nothing I do seems to work. my $secondary = $dict-{0}; while ( ($k, $v) = ( each %$secondary ) ) {

Re: Newbie: Has anyone used Tie::Hash::TwoWay

2008-01-31 Thread Rob Dixon
axtens wrote: G'day everyone I'm confused. I'm trying to make use of Tie::Hash::TwoWay to give me access to a dictionary of word = misspelling. Has anyone got any idea how I would use TwoWay for this? Nothing I do seems to work. my $secondary = $dict-{0}; while ( ($k, $v) = ( each

Re: Newbie: Has anyone used Tie::Hash::TwoWay

2008-01-31 Thread Rob Dixon
axtens wrote: G'day everyone I'm confused. I'm trying to make use of Tie::Hash::TwoWay to give me access to a dictionary of word = misspelling. Has anyone got any idea how I would use TwoWay for this? Nothing I do seems to work. my $secondary = $dict-{0}; while ( ($k, $v) = ( each