• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Quick Perl Help (notfred in plz =])

NuclearFusi0n

Diamond Member
$wavfile = sprintf "$album_performer - $album_title - %02d - $performer - $title.wav", $track_no;


i want to make it so that if $album_performer == $performer, it will be "$album_performer - $album_title - (%02d) - $title.wav" but if $performer differs from $album_performer, it should be like it already is

how? 🙂 (basically i just need to know the syntax for a "==" operation)

my guess:

if ($album_performer == $performer) {
$wavfile = sprintf "$album_performer - $album_title - %02d - $title.wav", $track_no;
} else {
$wavfile = sprintf "$album_performer - $album_title - %02d - $performer - $title.wav", $track_no;
}

CLIFF NOTES: Does perl use == like C++ uses ==? If not, how can I do an if variableA equals variableB?
 
Back
Top