Skip to content

Instantly share code, notes, and snippets.

View nanashiRei's full-sized avatar

David Marner nanashiRei

View GitHub Profile
#!/usr/bin/perl -w
#
# splitmysqldump - split mysqldump file into per-database dump files.
use strict;
use warnings;
my $dbfile;
my $dbname = q{};
my $header = q{};
while (<>) {