Thread Script hochladen ? (64 answers)
Opened by BrownWolf at 2003-08-27 02:16

esskar
 2003-08-27 03:17
#15928 #15928
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
perltidy ist ja nicht die wahl...
du solltest dir beim entwickeln einfach die mühe machen, einzurücken...

bsp.

aus

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
sub get_date {
my($sec,$min,$hour,$day,$month,$year) = (localtime($_[0]))[0..5];
my $datum = sprintf "%02d.%02d.%04d - %02d:%02d:%02d",$day,$month+1,$year+1900,$hour,$min,$sec;
return $datum;
}

sub new_pass {
my @password = ("a".."z","A".."Z",0..9);
my $password = join '', map { $password[int rand @password] } 0..7;
return $password;
}


wird

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
sub get_date
{
    my($sec, $min, $hour, $day, $month, $year) = (localtime($_[0]))[0..5];
    my $datum = sprintf "%02d.%02d.%04d - %02d:%02d:%02d", $day, $month+1, $year+1900, $hour, $min, $sec;
    return $datum;
}

sub new_pass
{
    my @password = ("a".."z","A".."Z",0..9);
    my $password = join '', map { $password[int rand @password] } 0..7;
    return $password;
}


oder so

View full thread Script hochladen ?