9 Einträge, 1 Seite |
1
2
3
my $string = "toller string heute nacht hier";
$string =~ /(.*?)(?=string)/;
print "'$1'\n";
'toller '
1
2
3
4
5
6
7
my $string = "toller string heute nacht hier";
my $pos = index($string, ' string');
my $w = substr($string, 0, $pos);
print "$w\n";
my $w = substr($string, 0, index($string, ' string'));
my ($foo) = $string =~ /(\w+)/;
my ($foo) = $string =~ /(.*?) *(?=string)/;
1
2
3
4
for(qw'FA2F7C39139F45F78 0A281045944445044 0A2F107D54447DE78 0A211045344445050
73CF1045138445F480 0 F3EF2044E3D17DE 8A08A0451412411 F3CF207DF41C79E
820A20451412414 83E93C4513D17D2'){print$_?'#':' 'for
split//,unpack"B*",pack"H*",$_;print"\n"}
map{tr/01/ #/,print"$_\n"for unpack"B*",pack"H*",$_}qw/FA2F7C39139F45F78 0A281045944445044 0A2F107D54447DE78 0A211045344445050 73CF1045138445F480 0 F3EF2044E3D17DE 8A08A0451412411 F3CF207DF41C79E 820A20451412414 83E93C4513D17D2/
9 Einträge, 1 Seite |