splitting and replacing characters

2009-11-09 Thread rithu
Hi, Please help me to split a string as follows.. my $line = "abcdefghijkl" the expected output should be like: ab ef ij The logic is like alternate 2 characters should be removed -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@

check a string against a array

2009-11-10 Thread rithu
Hi, I'm an oracle user. One of my implementation needs a little bit of perl usage. i've an array(@hexa_tableau) which contains restricted hexadecimal characters and a string which is converted into hexadecimal. while ((@carac) = $sel->fetchrow_array) { push(@hexa_tableau, $carac[0]);