34.204.169.76 |    

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.005 seconds at 57.99 KB/s

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

User online
There are 4 users online.

Tags Cloud

Latest snippets
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)
STDERR
(Bash::Function)
radius
(CSS)
shadow
(CSS)
rotate
(CSS)
create_function
(JavaScript::Snippets)