For various pragmatic reasons (I don't want to write calendar software scratch) I am invoking a Perl app from within my own Perl code, via the backtick operator:
$cal_output = qx/webcal.cgi DisplayMonthViewAction=on date=2002-06-24/;
This exact command, when typed at my c:\> or %> prompts, returns the correct output: month view for June.
However, when invoked via qx or ``, the output is the default view as defined in webcal.cgi (current month, May).
In other words, the name/value paramters seem to get ignored by Perl's backtick operator. You can see an example here:
http://www.hopecancer.org/cgi-bin/site/hcm.cgi?happenings_calendar=
Since this works from the commandline, I don't think that I am dealing with a bug in the script I am invoking. Any suggestions as to where I am losing the name=value params?
Much appreciated,
Pliny.
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.