Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Clipboard transform keys

by Anonymous Monk
on Nov 13, 2003 at 12:48 UTC ( #306781=note: print w/ replies, xml ) Need Help??

in reply to Clipboard transform keys

pl2bat is your friend

E:\>more print "hi\n"; E:\>pl2bat E:\>hi hi E:\>more hi.bat @rem = '--*-Perl-*-- @echo off if "%OS%" == "Windows_NT" goto WinNT perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofperl :WinNT perl -x -S %0 %* if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl if %errorlevel% == 9009 echo You do not have Perl in your PATH. if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul goto endofperl @rem '; #!perl #line 15 print "hi\n"; __END__ :endofperl

Comment on Re: Clipboard transform keys
Download Code
Re^2: Clipboard transform keys
by PhilHibbs (Hermit) on Nov 13, 2003 at 15:01 UTC
    I have a few variants of my own, for different perl installations. Some machines in the office have 5.00502 installed but not in the path, so I add a handful of extra lines that handle this. Also, some of my perl batches are self-logging.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-08-30 16:14 GMT
Find Nodes?
    Voting Booth?

    The best computer themed movie is:

    Results (293 votes), past polls