Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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 hi.pl print "hi\n"; E:\>pl2bat hi.pl 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2014-08-02 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls