Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: (duplicate) Help

by helgi (Hermit)
on Feb 14, 2003 at 16:21 UTC ( [id://235309]=note: print w/replies, xml ) Need Help??


in reply to (duplicate) Help

Bad subject line.

Try to find a subject line that actually describes your problem.

Here's one way:

#!perl use warnings; use strict; my $dir = '/home/sites/$arg1/users'; opendir DIR, $dir or die "Cannot opendir $dir:$!\n"; my @users = grep { -d "$dir/$_" and not /^\.{1,2}$/} readdir DIR; closedir DIR; # do whatever you want with @users print join "\n",@users;

--
Regards,
Helgi Briem
helgi AT decode DOT is

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://235309]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2024-04-23 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found