I've set up Rael Dornfest's perl script for hooking up to the Google API <http://www.oreillynet.com/cs/weblog/view/wlg/1283>, and it's working swell from the command line (only way I know how to run it unfortunately!), eg:
$perl googly <GoogleKey> related:www.foo.com 5
Would it be hard for me to create another perl script (that I can CRON to execute once a day) to...?:
1) execute the perl script for the API to generate the needed HTML (as invoked in the command line above)
2) output the results to a given PHP file I'd then be able to "Include"
I know this must be super-easy, but this newbie's clueless. I've been whacking at this with @ARGV, system() and backticks(), but I think I'm completely lost! Thanks in advance.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.