#!/usr/bin/perl -wl use strict; my @array = (11, 12, 13, 14, 15); my @new = map { $array[$_] } @ARGV; print "@new";
In reply to Re: print the array using command line arguements
by ocs
in thread print the array using command line arguements
by greatshots
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |