Perl: how check if variable is empty

Need a Perl equivilant of PHPs empty() ?

Purpose: Check is $value is empty

if( $value =~ /^\s*$/)
{
  #...
}

Purpose: Check is $value is not empty

if( $value !~ /^\s*$/ )
{
  #...
}

Justin Kelly

Justin Kelly

Data Engineeer, Business Analytics, Web Developer, Library Technology specialising in PHP and Tableau

Based in Melbourne, Australia

Feel free to contact me justin@kelly.org.au or _justin_kelly