in reply to Syntax error near ){

You're missing a semicolon after my $secret= int(1+ rand 100)

-b