On Nov 8, Kai Gollan said: >The message after using my skript is "4294967294" but this is not what I
Heh, I got that happening once. It was because I was trying to tidy up my code and line up all the = signs. > $datei = ~ s/$pattern/$replacement/ ; Two things. First off, you're not DEFINING $datei anywhere. If you want to use it, then change the while statement to: while ($datei = <FILE>) { $datei =~ s/$pat/$rep/; } Otherwise, you can do s/// on $_ (which is what is being assigned to by default): while (<FILE>) { s/$pat/$rep/; } But the problem was MAINLY that you had $var = ~ s/.../.../; Which is seen by Perl as $var = (~ s/.../.../); The ~ operator is the bit-wise negation operator, which is NOT what you wanted. It happened to me once too. Notice the number that appears... it happens to be either ~0 or ~1 depending on the success of s///. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]