Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
There is tool called pl2bat, which converts .pl script into .bat file.
in the same way i need a tool which convert batch file into perl script
please help me
Posted
Comments
Andreas Gieriet 14-Oct-15 16:25pm    
How about perl2brain2bat? ;-)
This is nonsense: bat lacks many features intrinsic to Perl.
The only way: call Perl from the bat file :-)
Regards
Andi

1 solution

You won't be able to find a batch file to Perl converter or vice versa.

pl2bat is not a converter. It is a tool that creates a batch file that is executing perl and passes the perl code contained in the same file (see here for an example: http://www.informit.com/articles/article.aspx?p=29328&seqNum=5[^]).

If the batch file is not too complex you may do a simple manual conversion by passing the batch file commands to the Perl system[^] command.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900