- or download this
elsif ($adduserargs == 0) {
#use prompt here...
...
"One or no letters only please"
);
- or download this
sub adduser {
my $username = generate_user_name( @_ );
}
- or download this
dark314@somebox:~/boxes/scripts/csl-ldap-01$ perl foo.pl -adduser
First Name: Manuel
...
Please enter middle inital (if it exists): F
Use of uninitialized value in concatenation (.) or string at foo.pl li
+ne 98, <STDIN> line 3.
Created username:
- or download this
dark314@somebox:~/boxes/scripts/csl-ldap-01$ perl foo.pl -adduser Manu
+el,Castillo,F
Created username: mcastillo
dark314@chavez:~/boxes/scripts/csl-ldap-01$
- or download this
if (exists $options{adduser} ) { #if adduser is an argument
my $adduserargs;
...
}
- or download this
#!/usr/bin/perl
...
}
return undef;
}