My linux world » Perl – Handle Exception

Perl - Handle Exception


eval { 
  # Try something
  (...)
};
 
if($@) {
  # if failed
  (...)
}

Copyright © 2023 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.

Fork me on GitHub