String Matching

2001-12-26 Thread Prabhu Gurumurthy
Hi, I have question, in my script i have lines as below: open(PASSFILE, "+>>passfile") || die "Cannot open file: $!\n"; print PASSFILE "$usname[$i] : $pasname[$i]\n"; close(PASSFILE); and they work fine, and in the "passfile i have root : root123 But if i want to read the lines from the pass

Finding Data Length

2001-12-20 Thread Prabhu Gurumurthy
Hi All, I have a C program which i want to convert it into perl In the C program it is given like this typedef unsigned short u_int16; #define dataLen 4 #define keyLen 52 #define userkeyLen 8 #define DataT(v) u_int16 v [dataLen] #define keyT(v) u_int16 v [keyLe