Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Add Null values to my FlatFile

by graff (Chancellor)
on Nov 27, 2007 at 03:04 UTC ( [id://653136]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            @FieldNames = sort (keys %FORM);
    
  2. or download this
            @FieldNames = qw/Fieldname1 Fieldname2 Fieldname3 .../;
    
  3. or download this
            foreach $key (@FieldNames) {
                    my $val = ( defined( $FORM{$key} ) and $FORM{$key} =~ 
    +/\S/ ) ?
                                        $FORM{$key} : "BLANK";
                    print LOGFILE "\t$val";
            }
    
  4. or download this
            my $line = '';
            foreach $key (@FieldNames) {
    ...
                                  $FORM{$key} : "BLANK":
            }
            print LOGFILE "$line\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://653136]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found