Thread Inhalt nur ausgeben wenn ^ kein \n: -> RegEx Problem (13 answers)
Opened by youngalcapone at 2004-01-31 18:58

esskar
 2004-01-31 19:03
#79687 #79687
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl
use strict;

open TXT, "../monatshit.txt" or die "$!";
my @txt = <TXT>;
close TXT;

unless($txt[0] =~ /^\r?\n/)
{
  print "Content-type: text/html\n\n";
  print "<div class=\"monatshit\">";
  print join "", @txt;
  print "</div>";
}
\n\n

<!--EDIT|esskar|1075568622-->

View full thread Inhalt nur ausgeben wenn ^ kein \n: -> RegEx Problem