- or download this
if (...) {
...
...
}
... # "else" stuff
- or download this
while (<$channel>) {push @output, $_}
#becomes
...
#although
my @output = <$channel>;
#is even better
- or download this
for my $i (@show_inventory) {
my $inv_line1 = shift @show_inventory;
my $inv_line2 = shift @show_inventory;
- or download this
while (@show_inventory) {
my $inv_line1 = shift @show_inventory;
my $inv_line2 = shift @show_inventory;