Hello sorry for this lame question but I can't search it becuase I don't know how to explain it in searchable terms, what I did search turned up nothing useful.
How can you execute multiple statements in Perl when perl expects one statement? Like I thought this would work: $dbh = DBI->connect("DBI:mysql::$mysql_host", $mysql_user, $mysql_pass) or { print "print statement before dying\n"; die "Can't connect, $DBI::errstr\n"; } But it doesn't work, I get syntax error, so how could I say: or: execute statement one; and execute statement two; end of condition. ? I don't want to create a subroutine and call that subroutine from the or. Thanks! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/