Leser: 30
1
2
3
4
5
6
7
8
9
10
11
12
0123456789
01234567890123456789
012345678901234567890123456789
0123456789012345678901234567890123456789
50
01234567890123456789012345678901234567890123456789
60
012345678901234567890123456789012345678901234567890123456789
70
0123456789012345678901234567890123456789012345678901234567890123456789
80
01234567890123456789012345678901234567890123456789012345678901234567890123456789
1
2
3
4
80
01234567890123456789012345678901234567890123456789012345678901234567890123456789
90
01234567890123456789012345678901234567890123456789012345678901234567890123456789123456789
1
2
3
4
5
6
100
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
120
012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
test feste breiiiiiite. klappt!!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/usr/bin/perl $| = 1; use strict; use warnings; use CGI; my $cgi = new CGI; print $cgi->header; print $cgi->start_html; print $cgi->start_table; while (my $line = <DATA>) { chomp $line; my (undef, $col1, $col2) = split/=/,$line; print $cgi->Tr($cgi->td({-width=>"50%"},[$col1,$col2])); } print $cgi->end_table; print $cgi->end_html; 1; __DATA__ =aaa=11111 =bbb=222 =ccc=77777 __END__
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
package CGI; require 5.004; use Carp 'croak'; # See the bottom of this file for the POD documentation. Search for the # string '=head'. # You can run this file through either pod2man or pod2html to produce pretty # documentation in manual or html file format (these utilities are part of the # Perl 5 distribution). # Copyright 1995-1998 Lincoln D. Stein. All rights reserved. # It may be used and modified freely, but I do request that this copyright # notice remain attached to the file. You may modify this module as you # wish, but if you redistribute a modified version, please attach a note # listing the modifications you have made. # The most recent version and complete docs are available at: # http://stein.cshl.org/WWW/software/CGI/ $CGI::revision = '$Id: CGI.pm,v 1.263 2009/02/11 16:56:37 lstein Exp $'; $CGI::VERSION='3.43'; # HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES. # UNCOMMENT THIS ONLY IF YOU KNOW WHAT YOU'RE DOING. # $CGITempFile::TMPDIRECTORY = '/usr/tmp'; use CGI::Util qw(rearrange rearrange_header make_attributes unescape escape expires ebcdic2ascii ascii2ebcdic); #use constant XHTML_DTD => ['-//W3C//DTD XHTML Basic 1.0//EN', # 'http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd']; use constant XHTML_DTD => ['-//W3C//DTD XHTML 1.0 Transitional//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd']; { local $^W = 0; $TAINTED = substr("$0$^X",0,0); } ...
QuoteOder meinst du, dass wenn du etwas scrollst, der Text aus der Box rausfließt beim „großen“ Code-Beispiel (CGI.pm) von mir?der letzt text geht über den rechten rand der box auf der kleinen auflösung