#!/usr/bin/perl my $sti="/usr/local/vpopmail/domains/test.dk/*";
@ary=glob($sti);
foreach ($fil) @ary -> foreach $fil (@ary) {
if (-d $fil) { print $fil;
} }
Hvis jeg gør som ovensteående får jeg disse fejl
Array found where operator expected at test2.pl line 6, at end of line (Missing operator before ?) Scalar found where operator expected at test2.pl line 6, near "-> foreach $fil" (Missing operator before $fil?) syntax error at test2.pl line 6, near ") @ary " Execution of test2.pl aborted due to compilation errors.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.