Date: Sat, 30 Jun 2001 09:11:18 -0400 From: tadmc@augustmail.com (Tad McClellan) Subject: Re: converting shell "sort" command to perl.. Message-Id: John W. Krahn wrote: >Patrick Erler wrote: >> $#ARGV >= 1 or die "Usage:\n\t$0 [logfile]\n"; > >@ARGV == 1 or die "Usage:\n\t$0 [logfile]\n"; That's good if you'd like to emphasize the condition rather than the Usage message. It's only a style choice, but I like to emphasize the action here rather than the condition: die "Usage:\n\t$0 [logfile]\n" unless @ARGV == 1; That even sounds a little Englishy: "die unless one arg". -- Tad McClellan SGML consulting tadmc@augustmail.com Perl programming Fort Worth, Texas