Hi All,
        Could anyone tell me how to do the following usinf
Perl.

Consider the following lines:

Apple
Mango
Banana
Orange

I want to replace line 1, line 2 i.e. (Apple, Mango)
with hello1\nhello2\nhello3\n.

The output should be:
hello1
hello2
hello3
Banana
Orange

I tried something like this:
$t="Apple,Mango";
perl -pe perl's/$t/hello1\nhello2\nhello3\n/' testvi >
o1
I am not getting the above mentioned output.

Thanks in Advance,
Lakshmi.


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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

Reply via email to