thanx so much for ur advice... actually am a new in perl monk... actually i want to make a database of mp3 songs. so after retrieving the tag info of each song..i got a output like :
Artist: Rock
Title: Fusion
Album: Fusion
Year: 2002
Genre: Other
Artist: MelB
Title: who am i
Album: donny
Year: 2004
Genre: Other
Artist: bon jo
Title: i can stay
Album : Armyman
Year: 2009
Genre: Other
Artist: Pearl
Title: Last
Album: Jam
Year: 1983
Genre: Other
now i want my database to be like :
Artist Title Album Year Genre
------ ----- ----- ----- -----
Rock Fusion Fusion 2002 other
MelB who am I dont 2003 other
bon jo Armyman jojo 2009 others
etc.
#!/usr/bin/perl
use warnings;
use strict;
my %hasharray; open (my $fh, "<", "C:/songdata1.txt") or die "can't op
+en the file";
while (<$fh>){
my ($header,$info) = split /:/; }
I dont know how to proceed futher. plz help me out.
sorry for making mistake earlier. now i got it rite.. sorry biohisam..
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|