#!/usr/bin/perl -w use strict; use Cwd; my $dir = '/script/projects'; opendir DIR, $dir or die "Cannot open directory '$dir' $!"; my ( $job ) = grep /^(?:r[spe]|tv|pr|do)\d{7}$/, readdir DIR; defined $job or die "Job file not found! Check directory!\n"; # etc.
In reply to Re: foreach not a global variable?
by jwkrahn
in thread foreach not a global variable?
by jriggs420
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |