Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Use of uninitialized value in string ne at myfile.pl.
Any suggestions?if($data->{classes} ne '') { $data->{classes} =~ s/XY//g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Check for hash ref emptiness
by AnomalousMonk (Archbishop) on Feb 07, 2018 at 22:41 UTC | |
by Anonymous Monk on Feb 08, 2018 at 00:08 UTC | |
|
Re: Check for hash ref emptiness
by NetWallah (Canon) on Feb 07, 2018 at 21:53 UTC | |
by AnomalousMonk (Archbishop) on Feb 07, 2018 at 22:49 UTC |