yucani has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl use strict; use warnings; use DBI(); my $FILE2; ....... open($FILE2,">c:\\$ref->{'id'}") or die "error\n"; binmode(FILE2); print $FILE2 pack('C', $ref->{'id'}); # format ....... sub print_obj { my ($dbh2,$ptyp,$pid,$mid) = @_; my $st2 = $dbh2->prepare("SELECT * FROM o$ptyp WHERE id=$pid"); $st2->execute(); ....... print $FILE2 pack('C', length $ba); print $FILE2 $ba; print "o"; } } $st2->finish(); }
Edit: g0n - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file subroutine
by davido (Cardinal) on Dec 20, 2007 at 02:14 UTC | |
by yucani (Initiate) on Dec 20, 2007 at 07:16 UTC | |
by davido (Cardinal) on Dec 20, 2007 at 07:58 UTC | |
by yucani (Initiate) on Dec 20, 2007 at 11:20 UTC |