use FLV::ToMP3;
$flv_filename = "/home/video/music.flv";
$mp3_filename = "test.mp3";
my $converter = FLV::ToMP3->new();
$converter->parse_flv($flv_filename);
$converter->save($mp3_filename);
Visit the following links for details:
use FLV::ToMP3;
$flv_filename = "/home/video/music.flv";
$mp3_filename = "test.mp3";
my $converter = FLV::ToMP3->new();
$converter->parse_flv($flv_filename);
$converter->save($mp3_filename);
mail($to, $subject, $body);
cpan -install ModuleName
cpan -install LWP
cpan -install Mail::Sendmail
$sum = add(3, 5);
print $sum."\n";
sub add
{
$a = shift;
$b = shift;
return ($a + $b);
}
$sum = add(3, 5);
print $sum."\n";
sub add
{
$a = shift;
$b = shift;
}
$sum = add(3, 5);
print $sum."\n";
sub add
{
$a = shift;
$b = shift;
$c = 10;
}
$items = count($ara);
my $items = scalar(@ara);
, you can also try: my $items = @ara;
items = ara.__len__()
. Note that in Python it's called list. List can be used as array.
my $upload_file_handle = $q->upload("file_name");
close $upload_file_handle;