Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: joining lines

by giulienk (Curate)
on Apr 23, 2002 at 17:49 UTC ( [id://161382]=note: print w/replies, xml ) Need Help??


in reply to joining lines

Alternative way:
my $line; while (defined($line=<FH>)){ chomp $line; unless (3 <= $line =~ tr,\|,\|,) { $line .= <FH>; redo unless eof(FH) } print "$line\n"; }

$|=$_='1g2i1u1l2i4e2n0k',map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://161382]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found