J
john brown
I'm new to perl programming and would like some help if at all
possible. I'm trying to make a simple script where I can input a
filename. To be exact something like "/home/song1.mp3". I want to
introduce this on the command line and have the script increment this
file 9 times.I.e. /home/song2.mp3, /home/song3.mp3
/home/song4.mp3, etc. I suppose the period, ".", would be the
delimiter. I've put down the basics but I'm stumped with the body of
the program. Any help would be appreciated. I posted the little bit
I came up with.
#!/usr/bin/perl
use strict;
use warnings;
print "Input mp3 name ";
my $mp3;
# Maybe chomp the newline here
# Find the delimiter and increment the filename
# Loop it 9 times
possible. I'm trying to make a simple script where I can input a
filename. To be exact something like "/home/song1.mp3". I want to
introduce this on the command line and have the script increment this
file 9 times.I.e. /home/song2.mp3, /home/song3.mp3
/home/song4.mp3, etc. I suppose the period, ".", would be the
delimiter. I've put down the basics but I'm stumped with the body of
the program. Any help would be appreciated. I posted the little bit
I came up with.
#!/usr/bin/perl
use strict;
use warnings;
print "Input mp3 name ";
my $mp3;
# Maybe chomp the newline here
# Find the delimiter and increment the filename
# Loop it 9 times