in reply to Split Not Working Correctly?

Tip #2 from the Basic debugging checklist: print

print "$call_subs{$call}\n"; @subjects = split(/, /, $call_subs{$call}); use Data::Dumper; print Dumper(\@subjects);

See also: split

Replies are listed 'Best First'.
Re^2: Split Not Working Correctly?
by Hans Castorp (Sexton) on Jan 08, 2014 at 14:51 UTC

    Thanks, toolic. I did use print to see what was coming out (though not with the syntax you used here, which didn't work for me). @subjects contains everything it should--all the subject headings. It's just that some of the subject headings are not getting assigned the class.

    I am reading the documentation you have linked here. Thanks.

      @subjects contains everything it should ... It's just that some of the subject headings are not getting assigned the class.

      The strings in the  @subjects array are correct; OK so far. But I don't understand (and others apparently share my confusion) how a string can be "assigned a class".