drock has asked for the wisdom of the Perl Monks concerning the following question:
use strict; open (FH,"/usr/local/bin/perld/derektapes") or die "cannot open FH: $! + \n"; my @a=(); my $i=0; my $ct=0; my $or_string=" or "; my $w_param="-w '"; my $b_param="barcode="; while (<FH>) { chomp $_; $a[$i]=$_; $i++; } print $w_param; print $b_param; print $a[0];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: printing all elements of arrays
by Fletch (Bishop) on Jul 13, 2004 at 01:06 UTC | |
|
Re: printing all elements of arrays
by FoxtrotUniform (Prior) on Jul 13, 2004 at 01:06 UTC | |
by ysth (Canon) on Jul 13, 2004 at 01:17 UTC | |
by drock (Beadle) on Jul 13, 2004 at 01:26 UTC | |
by FoxtrotUniform (Prior) on Jul 13, 2004 at 01:32 UTC | |
by beable (Friar) on Jul 13, 2004 at 02:00 UTC | |
by ysth (Canon) on Jul 13, 2004 at 01:30 UTC | |
by beable (Friar) on Jul 13, 2004 at 01:40 UTC | |
|
Re: printing all elements of arrays
by graff (Chancellor) on Jul 13, 2004 at 01:31 UTC | |
|
Re: printing all elements of arrays
by Gunth (Scribe) on Jul 13, 2004 at 04:43 UTC | |
|
Re: printing all elements of arrays
by pbeckingham (Parson) on Jul 13, 2004 at 03:30 UTC | |
|
Re: printing all elements of arrays
by ysth (Canon) on Jul 13, 2004 at 01:23 UTC |