in reply to Re: Auto text format cleanup via Win32::Clipboard
in thread Auto text format cleanup via Win32::Clipboard

You could try setting the clipboard to a know state, before entering you while loop.

Or check if $text eq "" after regex's and contiune on next iteration of the loop.

--
The Snowman
snowman@notreally.co.uk
  • Comment on Re: Re: Auto text format cleanup via Win32::Clipboard

Replies are listed 'Best First'.
Re: Re: Re: Auto text format cleanup via Win32::Clipboard
by gryphon (Abbot) on Aug 17, 2001 at 22:35 UTC

    Thanks!

    I added $clipboard->Empty();
    after my $clipboard = Win32::Clipboard();
    and added next if ($text eq '');
    before $clipboard->Set($text);, and that seems to have done the trick.

    -gryphon
    code('Perl') || die;