Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#get dates in right format my($daysql) = "select convert(char(8),getdate(),112),convert(char(8),(dateadd(mont +h,1,getdate())),112)"; my($dtcursor)=$scb_db->prepare($daysql); $dtcursor->execute; my($ddate,$nextddate)=$dtcursor->fetchrow_array; my($day) = substr($ddate,6,2); print STDOUT "$ddate,$nextddate,$day\n"; close (OUT); close (ERROR); print STDOUT "Normal Exit\n"; $apex_db->disconnect; die "Error disconnecting from database: $DBI::err <br> $D +BI::errstr\n" if $DBI::err ; $scb_db->disconnect; die "Error disconnecting from database: $DBI::err <br> $D +BI::errstr\n" if $DBI::err ; exit (0);
20080607 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: filehandle close causes hang
by CountZero (Bishop) on Jun 05, 2008 at 19:59 UTC | |
by marymarvel1 (Initiate) on Jun 09, 2008 at 14:58 UTC | |
by marymarvel1 (Initiate) on Jun 09, 2008 at 19:05 UTC | |
|
Re: filehandle close causes hang
by pc88mxer (Vicar) on Jun 05, 2008 at 20:52 UTC | |
by marymarvel1 (Initiate) on Jun 09, 2008 at 19:18 UTC | |
by marymarvel1 (Initiate) on Jun 10, 2008 at 16:30 UTC | |
by marymarvel1 (Initiate) on Jun 13, 2008 at 19:33 UTC |