I am new to perl and I have a python script which I can't understand exactly ...

OK, so we've established that you don't really understand Perl, perhaps don't really understand Python, and certainly don't understand the Python script you're dealing with.

Is it possible to take the python code and put it inside the perl script ...?

As others have pointed out, it's possible, and in more than one way. But is it wise? I have to agree with Arunbear's suggestion that your time might be better spent working to gain a better understanding of some combination of Perl, Python and the scripts in question. Your current self-described state of ignorance conjures up notions of very thin ice and very cold, dark waters beneath. Once you have improved your grasp of the issues with which you're grappling, you may find a much simpler and safer path to a solution. You may also find that the whole thing ain't broke and don't need fixing!


In reply to Re: embed python script into perl script? by AnomalousMonk
in thread embed python script into perl script? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.