Re: [ningji] "perl my.pl" is different from what i see from IE browser
[In reply to]

Can't Post

This means that $gpioLevel is the empty string ('') in the error case .....

I fear you have to bite the bullet and debug, how this variable gets its value. My guess is that @getCmd doesn't contain what you expect (maybe it has one extra line in the beginning?), so I would first dump this variable:

Re: [rovf] "perl my.pl" is different from what i see from IE browser
[In reply to]

Can't Post

Rovf,

if i run "perl my.pl" from command line, i do see that 1. this is why i get confused, :(

In Reply To

This means that $gpioLevel is the empty string ('') in the error case .....

I fear you have to bite the bullet and debug, how this variable gets its value. My guess is that @getCmd doesn't contain what you expect (maybe it has one extra line in the beginning?), so I would first dump this variable: