Jasmine wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> sorry its typo error in this email. My original code is printing $dstip.It
> will work if i put it on two separate lines.
> print "$srcip \n";
> print "$dstip \n";
> but i dont want it to be this way.. i want perl to print them side by side.

You have to be spelling the variable names wrongly Jasmine. Copy this line
out of my mail and use that.

    print "$srcip $dstip \n";

which is bound to work if the two separate lines you posted are correct.

It would help a lot if you put 'use strict' at the top of you script as well. That
way you would have to declare each variable with 'my', and anything
mistyped would simply show up as an error instead of having the 'undefined'
value.

HTH,

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to