muizelaar has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use Cwd; my $dir = getcwd; my $newdir = "/opt/DSPKG"; my $pkg = "DSDSLVP*"; my $PKG = "DSAPEVP*"; #Changes directory chdir($newdir) || die "Can't Chdir to $newdir: $!"; system("pkginfo $pkg $PKG > /tmp/pkglist 2> /tmp/vperror"); open(MYFILE, "/tmp/pkglist") || die "can't open file: $!"; @stuff=<MYFILE>; print "\n"; foreach my $file (@stuff) {eval { print "$file"; }} print "\n\n"; print "Press ENTER to Continue?"; my $answer = <STDIN>; chomp $answer;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array output
by moritz (Cardinal) on Sep 17, 2007 at 11:10 UTC | |
by muizelaar (Sexton) on Sep 17, 2007 at 11:31 UTC | |
|
Re: Array output
by cdarke (Prior) on Sep 17, 2007 at 11:50 UTC | |
|
Re: Array output
by shmem (Chancellor) on Sep 17, 2007 at 14:08 UTC |