-----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.
On Sunday 30 March 2003 06:37, Rob Dixon wrote: > Jasmine wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > i tested out to print $dstip alone.. and it works. $dstip does has a > > value. > > Jasmine. > > I think you may simply be printing out the wrong variable. Your > original code has: > > if ($A1 != 111 || $B1 != 222 || $C1 != 333) { > print "$srcip $dstport\n"; > } > > I think this should be > > print "$srcip $dstip\n"; > > as it's quite likely that the port number will be unspecified. > > HTH, > > Rob - -- Jasmine Chua Security Engineer SecureCiRT Pte Ltd Blk 750C Chai Chee Road #04-01 [EMAIL PROTECTED] Singapore 469003 Tel: 6243 6800 DID: 6243 6802 Fax: 6441 5119 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+hihGNgvTa7Hj2AURAq1NAKC8NG7zNSDEJHGxue5rjtFVhGuNmwCeMKC1 283hQvO1hnlt+5qae9z3kuk= =MuhE -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]