The calls to scalar are redundant, and I'd probably do:
warn "perfect_shuffle: lists must have equal length\n" unless @foo == @bar;
In reply to Re: Style: expr or warn vs. if..warn?
by adrianh
in thread Style: expr or warn vs. if..warn?
by FoxtrotUniform
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |