in reply to use perl to print multiple images

From your use of param, I'm guessing you're using a CGI program.

Assuming your program is generating HTML, your if statement should probably generate the HTML code that includes images.

print '<img src = "http://www.example.com/images/crop.jpg" alt = " +Crop">' x $crops;