Thread Mit String-Werten rechnen?! (18 answers)
Opened by Gast at 2004-07-26 14:16

[E|B]
 2004-07-26 15:01
#84978 #84978
User since
2003-08-08
2561 Artikel
HausmeisterIn
[Homepage] [default_avatar]
@Ronnie

Wieso so kompliziert? :)

Code: (dl )
1
2
3
4
5
6
7
8
C:\>perl
$string1 = "20";
$string2 = "30";

print eval($string1+$string2);
^D
50
C:\>
Gruß, Erik!

s))91\&\/\^z->sub{}\(\@new\)=>69\&\/\^z->sub{}\(\@new\)=>124\&\/\^z->sub{}\(\@new\)=>);
$_.=qq~66\&\/\^z->sub{}\(\@new\)=>93~;for(@_=split(/\&\/\^z->sub{}\(\@new\)=>/)){print chr;}

It's not a bug, it's a feature! - [CGI-World.de]

View full thread Mit String-Werten rechnen?!