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: PerlMagick, refer to single image in image array

2008-02-04 Thread Tom Phoenix
On Feb 4, 2008 8:25 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I made an image object $mask_list and pushed several images in it. > The internal structure seems ok because $mask_list->Write('test.jpg') > delivers all the images with an index in the right sequence. > Later I want to refer t

PerlMagick, refer to single image in image array

2008-02-04 Thread [EMAIL PROTECTED]
Hello, I made an image object $mask_list and pushed several images in it. The internal structure seems ok because $mask_list->Write('test.jpg') delivers all the images with an index in the right sequence. Later I want to refer to the single images in the list with $mask = $mask_list[$j] but if I t

Re: regexp not working past one character

2008-02-04 Thread Chas. Owens
On Feb 4, 2008 1:02 AM, <[EMAIL PROTECTED]> wrote: snip > Here's what I got from file file.txt > > file.txt: Big-endian UTF-16 Unicode English character data, with very > long lines, with CRLF, CR, LF line terminators > > Does this explain why my regexp search wasn't working? snip It might. How

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 cons

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: Regular expression for extracting hrefs from HTML file

2008-02-04 Thread R (Chandra) Chandrasekhar
Chas. Owens wrote: This is a job for an HTML parser, not a single regex. Thank you for telling me about HTML::Parser, which I will use in future. Gunnar Hjalmarsson wrote: print "$1\n" while $content =~ m|(http://.*?";>)|gis; Thank you for your script (which works!) and most of all for th

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 t

Re: regexp not working past one character

2008-02-04 Thread PlagueMagazine
On Feb 3, 8:36 pm, [EMAIL PROTECTED] (Chas. Owens) wrote: > On Feb 3, 2008 12:07 PM, <[EMAIL PROTECTED]> wrote: > > > On Feb 2, 11:10 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > > > [EMAIL PROTECTED] wrote: > > > > I have a program with a line like > > > > > while () { > > > > if (/stuff/i