I'm having to use an old version of perl on some systems and it doesnt like the format of the open
my $file = shift @ARGV || 'cpuuse.out'; open my $fh, '<', $file or die $!; Is there another way of opening the file in the same way but different code? Thanks, Jase The sum function is just a convieniece function (which is why it is part of List::Util and not imported by default). You can get the same effect like this my $sum = 0; $sum += $_ for @cpu; print $sum / @cpu; Disclaimer: This e-mail may contain confidential or privileged information and is intended solely for the addressee. If you have received this e-mail in error, please notify the sender immediately and delete the e-mail. The unauthorised use, disclosure, copying or alteration of this e-mail is strictly forbidden. This communication is provided for information purposes only and does not form any part of a contract or agreement. Any comments or statements made herein do not necessarily reflect those of SwitchSupport. This e-mail message and any attached files have been scanned for the presence of computer viruses prior to leaving the SwitchSupport network but SwitchSupport will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on.