On Feb 5, 2004, at 1:34 PM, Gregg O'Donnell wrote:
Here's the whole shootin' match...
Wow, man. No offense intended but we need to clean that up a little
before I can say a lot about how it is or is not working. Did you know
we won't bill you for using extra whitespace?
First two questions:
Here's the whole shootin' match...
#!/usr/local/bin/perl -wT
# --
my $debug = 0;
my @database_dirs =
(
"/home/state/dof/fire/",
"/home/state/dof/fire/"
);
my @template_dirs =
(
"/home/state/dof/fire/",
"/home/st
On Feb 5, 2004, at 11:56 AM, Gregg O'Donnell wrote:
Good follow-up, and here's a snippet:
Just FYI, there are multiple CSV parsing modules on the CPAN. I use
Text::CSV_XS personally.
sub parse_line {
my $line = shift;
chomp($line);
print "LINE: $line\n" if $debug;
my %record;
my $entr
Good follow-up, and here's a snippet:
sub parse_line {
my $line = shift;
chomp($line);
print "LINE: $line\n" if $debug;
my %record;
my $entry;
my $i = 1; # First index
while ($line) {
if ($line =~
s {
^\"
On Feb 5, 2004, at 10:38 AM, Gregg O'Donnell wrote:
I have a script that reads a CSV file into an HTML template. The
template reads the CSV data accurately unless the field shows zero, in
which case the HTML page displays a blank space. Any suggesstions?
Absolutely. I suggest you post your code
We might need a little code if we're going to help. As far as I know there are no
CSV-HTML gotchas that would do this, so it's probably your algorithm. Are you doing
something like this?
if($my_var){
print $my_var;
}
that would print nothing if the value was a zero, because zero evaluates