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

Re^4: Find maximum number in text file and copying its full statement in new text file?

by sumathigokul (Acolyte)
on May 07, 2015 at 09:52 UTC ( #1125982=note: print w/replies, xml ) Need Help??


in reply to Re^3: Find maximum number in text file and copying its full statement in new text file?
in thread Find maximum number in text file and copying its full statement in new text file?

Yeah its is printing as "Highest number:2", but, its not printing to new file.The following is the input file.

High fanout nets in the post compile netlist: Fanout Type Name -------------------------- 2 INT_NET Net : c_c Driver: c_pad 2 INT_NET Net : b_c Driver: b_pad 2 INT_NET Net : a_c Driver: a_pad 1 INT_NET Net : sum_c Driver: sum_1_SUM0_0 1 INT_NET Net : N_5 Driver: sum_1_CO0_i
  • Comment on Re^4: Find maximum number in text file and copying its full statement in new text file?
  • Download Code

Replies are listed 'Best First'.
Re^5: Find maximum number in text file and copying its full statement in new text file?
by parv (Vicar) on May 07, 2015 at 14:16 UTC

    kcott's version works as you expect. Your modified version (writing lines in a loop to another file) does work here, though output is not what you want.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2020-11-26 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?