Operating System - HP-UX
1752546 Members
4919 Online
108788 Solutions
New Discussion

Interesting Problem with Perl / C

 
Kalin Evtimov
Regular Advisor

Interesting Problem with Perl / C

Hello!
I just came upon an interesting problem:
I wrote a small test programm to test a tool that I installed. It is in Perl and says:

#!/opt/perl5/bin/perl

use RRDp;
RRDp::start "/usr/local/rrdtool-1.2.9/bin/rrdtool";
my $var = "920804400";
print $var;
RRDp::cmd qw(create test.rrd
--start $var
DS:speed:COUNTER:600:U:U
RRA:AVERAGE:0.5:1:24
RRA:AVERAGE:0.5:6:10);

and so on...

Now, if I start it like this, I get an error message from the tool (unparsable time).
If I put the time stamp instead of $var, it works.
I tried single quotes, qw(...), but nothing helped.
The developer of the tool says, that the problem is on my system.

Does anybody know anything about special Quoting-rules under HP-UX. All executables were compiled from C-source.

I appreciate every idea!
1 REPLY 1
Kalin Evtimov
Regular Advisor

Re: Interesting Problem with Perl / C

I solved the problem. The author's example didn't work on HP-UX, instead of his qw(...) I wrote "...." and this was ok.