Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
When the new file ($articalsdat) is viewed, there is an @ symbol after every line of $article? why? Will the kind monks help?# This is my format format FORMATTED = <font face="Arial"> @<<<<<<<<< </font> $date @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $subject @* $article </font><hr size="1" noshade></p> . # This is where the text is pulled from a file and written into anothe +r using the format. open(FORMATTED, "> $newspage") || sendError("can't write to $newspage" +); open(DATAFILE, $articalsdat) || sendError("cant open articles file"); while (<DATAFILE>) { chomp; # remove newline ($date,$subject,$article) = (split(/-!news-/)); $date = "00/00/0000" if !defined($date); $subject = "no subject" if !defined($subject); $article = "no article" if !defined($article); write(FORMATTED); } close (DATAFILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Strange @ appearance
by kschwab (Vicar) on Jul 29, 2001 at 05:26 UTC | |
by Anonymous Monk on Jul 29, 2001 at 18:03 UTC | |
by Anonymous Monk on Jul 29, 2001 at 19:14 UTC | |
|
Re: Strange @ appearance
by bikeNomad (Priest) on Jul 29, 2001 at 19:39 UTC |