ellem has asked for the wisdom of the Perl Monks concerning the following question:
lmoran@wtsgSPAM.com print "\x{263a}"#!/usr/bin/perl -w use diagnostics ; use strict ; open (DIR, '>> c:\dir\dir.txt') || die "Can't open file; $!" ; while (<DIR>) { my $dir = `dir *.pl` ; write DIR ; } close DIR ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting the output of a shell command
by davorg (Chancellor) on Jun 04, 2001 at 20:24 UTC | |
by ellem (Hermit) on Jun 04, 2001 at 22:08 UTC | |
|
Re: Getting the output of a shell command
by grinder (Bishop) on Jun 04, 2001 at 20:52 UTC | |
|
Re: Getting the output of a shell command
by merlyn (Sage) on Jun 04, 2001 at 20:40 UTC | |
|
Re: Getting the output of a shell command
by the_slycer (Chaplain) on Jun 04, 2001 at 20:24 UTC | |
by ellem (Hermit) on Jun 04, 2001 at 23:24 UTC | |
|
Re: Getting the output of a shell command
by snafu (Chaplain) on Jun 04, 2001 at 23:38 UTC | |
|
Re: Getting the output of a shell command
by BigJoe (Curate) on Jun 05, 2001 at 00:09 UTC | |
|
Re: Getting the output of a shell command
by blue_cowdawg (Monsignor) on Jun 04, 2001 at 23:32 UTC | |
|
Re: Getting the output of a shell command
by Vynce (Friar) on Jun 05, 2001 at 13:06 UTC |