Majian wrote:
Hi, all :

Hello,

I have a problem about the lines of the file ,
like this :
cat test
12
23
34
45
56
67
78
...

==================
I want to display like this :
1223
3445
5667
....

It means the next line is after the last line .
How do it by the Perl ?

$ echo "12
23
34
45
56
67
78" | perl -lpe'$\=--$|?$,:$/'
1223
3445
5667
78




John
--
The programmer is fighting against the two most
destructive forces in the universe: entropy and
human stupidity.               -- Damian Conway

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to