9 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use Carp;
sub swrite {
croak "usage: swrite PICTURE ARGS" unless @_;
my $format = shift;
$^A = "";
formline($format,@_);
return $^A;
}
$string = swrite(<<'END', 1, 2, 3);
Check me out
@<<< @||| @>>>
END
print $string;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
my $format = q~
Check me out
@<<< @||| @>>>
~;
my $string = swrite($format,1,2,3);
print $string;
sub swrite{
my $format = shift;
$^A = "";
formline($format,@_);
return $^A;
}
1
2
3
4
5
6
7
8
9
10
11
my ($eins, $zwei, $drei);
my $format = q~
Check me out
@<<< @||| @>>>
$eins, $zwei, $drei
~;
$eins = $zwei = $drei = 1;
my $str = &swrite($format);
print $str;
1
2
3
4
5
6
7
8
9
10
my ($eins, $zwei, $drei);
my $format = q~
Check me out
@<<< @||| @>>>
~;
$eins = $zwei = $drei = 1;
my $str = swrite($format,$eins,$zwei,$drei);
print $str;
9 Einträge, 1 Seite |