Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: useless use of sort???

by Anonymous Monk
on Mar 22, 2005 at 09:39 UTC ( [id://441405]=note: print w/replies, xml ) Need Help??


in reply to useless use of sort???

Strange looking code you have.
  • You are opening $vmout and $cpuout for write/read. But you never read (not that it would make much sense as you first truncate the file due to "+>").
  • What's with the $, = "\n", and then printing a scalar followed by $,. If you want to print two newlines, be explicite.
  • Why do you separate your substitutions and your prints with commas? Why not just semi-colons, like everyone else does?
  • (split)[16] is a one-element list. Perl will sort it for you, but that's not really going to change the order of the list.
  • You aren't checking the return values of your closes.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-23 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found