Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Short Answer: Almost certainly yes

You can do pretty much anything with Perl when it comes to manipulating Text. Using regular expressions will enable you to focus on the section of the "email" that you want and rip out the information that you're after.

After that it's simply a case of passing the variables to the PHP script, so really it's reliant on a couple of major things.

1. How the mail message gets to the Perl Script, and
2. How the PHP script will accept your input.

For example, are you simply running a PHP script and supplying the variables to STDIN, or do you need to send it as CGI data.

More information/source code examples/sample "mail messages" for parsing would make it much more likely that you can get some more relevant help.

In reply to Re: question about forwarding variables to php from perl by SquireJames
in thread question about forwarding variables to php from perl by nathan0601

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2023-12-01 19:50 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (5 votes). Check out past polls.