Thread JSON Regex ausgeben
(35 answers)
Opened by bianca at 2013-10-30 08:46 2013-10-30T08:14:26 Muffi So? Test schlägt fehl. Warum? Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 #!/usr/bin/perl use strict; use warnings; use diagnostics; use JSON 2.59; my %var = ( regex => "/[^a-z]/i", ); print 'Test '.('FOO1' =~ $var{regex} ? 'erfolgreich' : 'fehlgeschlagen')."\n"; my $json = JSON->new->latin1->encode(\%var); print "JSON: '$json'\n"; 10 print "Hallo"
20 goto 10 |