Arien0611 has asked for the wisdom of the Perl Monks concerning the following question:
i dont understand what i m doing wrong. i mean, i just want to increment my variable... thanks for your time though, and sorry if my question is a tad stupid. i just dont understand the problem, and i cant search for it somewhere. so any help would be appreciated.sub exractSongTitlesFromCueFile{ my ($cue_file_to_parse) = @_; my @album_info; my $w = 0; open(CUEFILEFOUND, $cue_file_found) || die "Error 003: Could not o +pen cue file named: $cue_file_found! $!\n"; while(<CUEFILEFOUND>){ if($_ =~ /\s+TITLE "(.*)".*/){ $album_info[$w] = $1 || die "Error 004: Could assign song +title to array! $!\n"; # print "$1\n"; $w++ || die "Error 005: Could not increment array pointer +$!\n"; } } close(CUEFILEFOUND); return (@album_info); } </code and running the script, would give me this output: <code> Error 005: Could not increment array pointer Inappropriate ioctl for d +evice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: weird begginer's problem...
by choroba (Cardinal) on Sep 06, 2012 at 16:16 UTC | |
|
Re: weird begginer's problem...
by hbm (Hermit) on Sep 06, 2012 at 16:17 UTC | |
by Arien0611 (Novice) on Sep 06, 2012 at 16:19 UTC | |
by SuicideJunkie (Vicar) on Sep 06, 2012 at 19:17 UTC | |
by Old_Gray_Bear (Bishop) on Sep 07, 2012 at 07:48 UTC | |
|
Re: weird begginer's problem...
by MidLifeXis (Monsignor) on Sep 06, 2012 at 16:23 UTC | |
|
Re: weird begginer's problem...
by Khen1950fx (Canon) on Sep 06, 2012 at 16:29 UTC | |
by MidLifeXis (Monsignor) on Sep 06, 2012 at 16:41 UTC |