Perl: how check if variable is empty
05 Oct 2009Need 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*$/ )
{
  #...
}
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*$/ )
{
  #...
}
 
    
       Data Engineeer, Business Analytics, Web Developer, Library Technology specialising in PHP and Tableau
       
 
       Based in Melbourne, Australia
      
Feel free to contact me [email protected] or justinkellyau