Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: select only duplicate entries

by ikegami (Patriarch)
on Aug 24, 2006 at 15:08 UTC ( [id://569381]=note: print w/replies, xml ) Need Help??


in reply to Re: select only duplicate entries
in thread select only duplicate entries

while ( defined ( $_ = <DATA> )){
is equivalent to
while ( <DATA> ){

$c > 1 ? print $fh2 "$k\t$_\n" : print $fh1 "$k\t$_\n";
is equivalent to
print { $c == 1 ? $fh1 : $fh2 } "$k\t$_\n";
or do
my $fh = $c == 1 ? $fh1 : $fh2;
outside the loop and print to $fh.

Replies are listed 'Best First'.
Re^3: select only duplicate entries
by borisz (Canon) on Aug 24, 2006 at 16:17 UTC
    Thanks, I know. I try to write it simple for the newbies.
    Boris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found