4

I am using a PC where perl script is not allowed. Is there any tool to convert perl script to vba macro?

Or is there any links where we can get the vba equavalent of perl statements.

2 Answers 2

3

Assuming you've got access to a machine that can run Perl, you could try using the PAR Packer utility (pp).

% pp -o hello hello.pl      
# Pack 'hello.pl' into executable 'hello'
# (or 'hello.exe' on Win32)
Sign up to request clarification or add additional context in comments.

4 Comments

Thank you Corey, I will try and get back
I tried in a machine that has Perl.. but pp command is not recognized.. Please help
You need to install it from CPAN.
Thank you @triplee , But I am not allowed to install any software
-1

If you have enough permissions to run VB scripts, you should also have permissions to install the Perl interpreter and just run your script natively.

8 Comments

Thanks for the info Nilpo. I can run a vba code from excel macro. But I am not allowed to install Perl interpreter or any new software.
@Nilpo: There's a difference between having privileges on a machine and having permission to install software. The latter is determined by people, not by software.
@RamseyNorton: Running a VBA macro is slightly different than pure VBScript but it shouldn't present a problem in most cases. If you can post your Perl script, I'd be happy to see about porting it over for you.
@Jonathan: I agree with your statement. I was more or less suggesting that in 99% of all configurations I've encountered professionally, they are both restricted or unrestricted equally. You seldom see a scenario where one is allowed and the other is not.
Thank you Nilpo. But I cant even access this web page from that system. I will write a similar perl script using all the statements I used in that and post soon.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.