Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Perl DBI NULL and undef

by chefchanyu (Novice)
on Aug 22, 2012 at 00:48 UTC ( [id://988914]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use DBI;
    ...
        }
        print "\n";
    }
    
  2. or download this
    if(defined($_))
    {
    ...
    {
      print "NULL";
    }
    
  3. or download this
    [cacti@cacti other]$ perl cacti.pl
    id        local_data_template_data_idlocal_data_iddata_template_iddata
    +_input_idt_name    name      name_cachedata_source_patht_active  acti
    +ve    t_rrd_steprrd_step  t_rra_id  
    ...
    72        70        9         49        0         NULL10 minutes10 min
    +utes/var/www/cacti_rrd/MMS/Daily/CDR_TOTAL_901R902M905S906FOREIGNOPTU
    +S.rrdNULLon        NULL600       NULL
    [cacti@cacti other]$
    
  4. or download this
    INSERT INTO data_template_data (id, local_data_template_data_id, local
    +_data_id, data_template_id, data_input_id, t_name, name, name_cache, 
    +data_source_path, t_active, active, t_rrd_step, rrd_step, t_rra_id) V
    +ALUES
      (3, 0, 0, 3, 2, 'on', '|host_description| - Hard Drive Space', '', N
    +ULL, '', 'on', '', 300, ''),
    ...
      (70, 0, 0, 49, 0, '', '10 minutes', '', NULL, '', 'on', '', 600, '')
    +,
      (71, 70, 8, 49, 0, NULL, '10 minutes', '10 minutes', '/var/www/cacti
    +_rrd/MMS/Daily/CDR_TOTAL_901S902M905S906WAPENC.rrd', NULL, 'on', NULL
    +, 600, NULL),
      (72, 70, 9, 49, 0, NULL, '10 minutes', '10 minutes', '/var/www/cacti
    +_rrd/MMS/Daily/CDR_TOTAL_901R902M905S906FOREIGNOPTUS.rrd', NULL, 'on'
    +, NULL, 600, NULL);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found