Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

translate VB Script to Perl Script

by rameshBhupal (Initiate)
on Aug 23, 2016 at 15:13 UTC ( #1170228=perlquestion: print w/replies, xml ) Need Help??

rameshBhupal has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: translate VB Script to Perl Script
by dasgar (Priest) on Aug 23, 2016 at 16:28 UTC

    I totally agree with marto and stevieb.

    Also, you dumped XML into your post. You'll have to pull out the relevant VB script(s) that you would want converted to Perl. If you're not wanting to do that conversion yourself, you could purchase ActiveState's Perl Dev Kit (PDK) or their ActivePerl Pro Studio (which includes PDK). Their PDK includes a VBscript converter. It's been over 10 years since I had access to PDK, but from what I remember, I needed to tweak the Perl code that the VBscript converter created when I tried using it to convert Excel macros to Perl.

    I'm not trying to sound mean here, but if you don't want to convert VB script to Perl yourself and are willing to throw money at the problem, you can always hire one or more developers to do the code conversion work for you. One possible place to look for Perl developers is at https://jobs.perl.org/.

    Also, doing a super quick scan through your post, I saw references to Wscript, registry keys and MSSQL. That means that your XML data probably contains more than just VBscript. That could complicate your code conversion work if you're not careful.

Re: translate VB Script to Perl Script
by marto (Cardinal) on Aug 23, 2016 at 15:18 UTC

    It doesn't look like you need help, you just seem to be asking someone to do this for you. That isn't what we do here. Also your post is for the most part unreadable. Read this, follow the links. See also http://learn.perl.org, tutorials.

Re: translate VB Script to Perl Script
by stevieb (Canon) on Aug 23, 2016 at 15:20 UTC

    Welcome to the Monastery, rameshBhupal.

    This is not a code writing service. First off, please read through How do I post a question effectively?, then edit your question appropriately (How do I change/delete my post?).

    Lastly, what we do here is help people who have made attempts at writing code, and are having specific issues. You've made no effort whatsoever, and appears as though you just want to hand us code from another language and translate it for you with no explanation of what the code does, what you've tried, nor where you are having issues.

    Again, please edit/revise your question to reflect that information.

Re: translate VB Script to Perl Script
by Old_Gray_Bear (Bishop) on Aug 24, 2016 at 22:18 UTC

    I recall a thread a few years back with the same request, "Take my VB Script and convert it to Perl", or something like that. The best answer in the thread was:

    Insert these line at the top of the VB Script file:
    #!/usr/local/bin/perl use strict; use warnings;
    Now run the code and fix all of the errors and warnings.
    I may be not remembering some of the details, I am an Old Bear after all, but this looks like a good starting point for you.

    Update: Corrected typoes. I need to remember "Coffee BEFORE Perl Monks."

    ----
    I Go Back to Sleep, Now.

    OGB

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2021-04-19 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?