Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Clipboard transform keys

by phildog (Novice)
on Aug 14, 2003 at 16:55 UTC ( #283934=note: print w/ replies, xml ) Need Help??

in reply to Clipboard transform keys

Nice! Can you post the href transform code in this thread as well?

Comment on Re: Clipboard transform keys
Replies are listed 'Best First'.
Re^2: Clipboard transform keys
by PhilHibbs (Hermit) on Aug 18, 2003 at 10:15 UTC
    Here's the script that transforms an URI into a HTML link:
    @rem = '--*-Perl-*-- @echo off perl -x -S "%~dpnx0" %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofperl @rem '; #!perl #line 8 use strict; use warnings; use HTML::Entities; use Win32::Clipboard; my $CLIP = Win32::Clipboard(); my $text = $CLIP->GetText; if (substr($text,0,1) ne '<') { chomp $text; $text = encode_entities($text); $CLIP->Set('<a href="'.$text.'"></a>'); } __END__ :endofperl
    Update:Uses HTML::Entities to translate & to &amp; etc.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://283934]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2015-11-25 15:00 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (679 votes), past polls