Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

How to Split the varaibles across batch files in perl

by PerlRider (Initiate)
on Jan 25, 2013 at 09:20 UTC ( #1015293=perlquestion: print w/ replies, xml ) Need Help??
PerlRider has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I am trying to access the pyhton file from the perl by using Batch file as an interface. It works fine if we call the functions in the python file itself and then call that pyhton file through batch file. Python file is having three functions. Now I need to call these three functions separately. So I wrote three batch files but how to share the varaibles across batch files. Can someone please share some knowledge??

Comment on How to Split the varaibles across batch files in perl
Re: How to Split the varaibles across batch files in perl
by Anonymous Monk on Jan 25, 2013 at 09:27 UTC

    No, batch file programming is not a topic for perlmonks

Re: How to Split the varaibles across batch files in perl
by choroba (Abbot) on Jan 25, 2013 at 09:48 UTC
    You are constantly ignoring the markup recommendations. See How (Not) To Ask A Question.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: How to Split the varaibles across batch files in perl
by Corion (Pope) on Jan 25, 2013 at 09:51 UTC

    There is no easy way to share variables between processes. I suggest you investigate common serialization formats, like JSON, which can be read and written from Python and Perl.

Re: How to Split the varaibles across batch files in perl
by talexb (Canon) on Jan 25, 2013 at 17:28 UTC
      Can someone please share some knowledge??

    Sure. Start saving early for your retirement. Don't carry a balance on your credit cards. Spend money on experiences, and not possessions.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

        PerlMonks is English only. We dont speak telugu here.
Re: How to Split the varaibles across batch files in perl
by talexb (Canon) on Jan 25, 2013 at 17:30 UTC

    More seriously, how is this related to Perl?

    You haven't shown us any code or described what you're trying to achieve in anything but conceptual terms. It's therefore virtually impossible for us to be able to assist you. Please be more specific.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Re: How to Split the varaibles across batch files in perl
by BrowserUk (Pope) on Jan 25, 2013 at 18:24 UTC
    I am trying to access the pyhton file from the perl by using Batch file as an interface.

    Why are you calling pythong from perl via batch files? Why not call the python code directly from Perl?

    Python file is having three functions. Now I need to call these three functions separately.

    What do those 3 python functions do? Have you looked for Perl equivalents? It sure would simplify things.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2014-11-26 04:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (162 votes), past polls