44.202.183.118 |    

Navigation

Google Advertisement

Die Funktion boundary() generiert eine zufällige Zeichenfolge einer bestimmten Länge.

boundary
  1. # my $boundary=boundary(24);
  2. # **************************************
  3. # Zufaellige Zeichenfolge einer
  4. # bestimmten laenge generieren.
  5.  
  6. sub boundary {
  7.  
  8. my $boundary="";
  9. my @sign=(0..9, 'A'..'F');
  10. srand(time ^ $$);
  11. $boundary .= $sign[rand(@sign)] while($_[0]--);
  12. return $boundary;
  13.  
  14. }
Parsed in 0.001 seconds at 197.87 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 2 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)