Thanx for the help,it really did work. So how about to delete the phones from a file.
If my input file was like this:
EARLY er l iy sp
EARTHENWARE eh dh n w ea r sp
So that my output file can be like this:
EARLY
EARTHENWARE
Any clarity?
: : $info=join $word,' ',$w1;
: This is not what join is for. Well, I guess it is in a way, but not like that. What you want is the concatenation operator:-
:
: $info = $word . ' ' . $w1;
:
: Or simpler, just interpolate:-
:
: $info = "$word $w1";
:
: Unfortunately that still won't work because there is a \n on the end of $word. So you should do:-
:
: chomp $word;
: $info = "$word $w1\n";
:
: Which should work out fine.
:
: --
:
: Join takes an array as it's second parameter and inserts what is in the first parameter between them. So to use Join for what you wanted, you'd probably have needed to do:-
:
: $info = join(' ', ($word, $w1));
:
: The other methods I showed you read much easier than that, and you still need the chomp either way and to throw the \n back on the end of the new string. So join ain't so helpful here.

:
: Hope this helps,
:
: Jonathan
:
: ###
: for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
: (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
: /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
:
: