Thank you a lot Luke, it worked.
Now there's something else, how do I tell perl to open a file where the
/path/to/dir contained with $line?
such as :
open OUT, ">/path/to/$line/dir/.qmail-$line" or die "$!";
regards,
gregor
listperl writes:
> Hey Gregor,
>
> I use something simi
Hey Gregor,
I use something similar on my box (I use qmail too). This should do what you
want it to.
#!/usr/bin/perl -w
use strict;
my @users = qw/ donna maria karina /;
foreach my $line (@user){
open OUT, ">/path/to/dir/.qmail-$line" or die "$!";
print OUT "|/usr/local/blah ./$line/mai