CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [FishMonger] Print Hash Keys: Edit Log



Stefanik
User

Jan 3, 2013, 6:59 AM


Views: 1522
Re: [FishMonger] Print Hash Keys

Thanks to all of you Smile

Is it possible to have an hash key with character empty (" " or "") ?

In that case to erase it, should I use a loop:


Code
  if (($value1 != " ") && ($value1 != ""))  
{
my $KeyHa = $value1;
my $ValHA = 1;
$Ha_ha{$KeyHa} = $ValHA;
}



Or is it possible to execute the check while I assign the variable to the Hash-key?


(This post was edited by Stefanik on Jan 3, 2013, 7:08 AM)


Edit Log:
Post edited by Stefanik (User) on Jan 3, 2013, 7:08 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives