•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Perl section within the Software Development category of DaniWeb, a massive community of 456,575 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,588 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Perl advertiser: Programming Forums
Views: 823 | Replies: 4
![]() |
•
•
Join Date: Oct 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
hi all,
sorry for posting the same question,i have to this because my last post was really a mess.
now i will try explain my problem in concise
i have variable
and i have passed values to the HeaderHash successfully
but while i try to print the HeaderHash data like
i am getting error like uninitialized value use
but actually i am damn sure that my HeaderHash contains "Deal Name" element with value as "102"
how to get rid fom the prob
thanks in adv
R
sorry for posting the same question,i have to this because my last post was really a mess.
now i will try explain my problem in concise
i have variable
my %HeaderHash=();
but while i try to print the HeaderHash data like
print("$HeaderHash{'Deal Name'}\n");but actually i am damn sure that my HeaderHash contains "Deal Name" element with value as "102"
how to get rid fom the prob
thanks in adv
R
Post code and sample data. On a side note do not use parenthesis in your print statements:
print("$HeaderHash{'Deal Name'}\n");
better written as:
print "$HeaderHash{'Deal Name'}\n";
while this is not the source of your problem, using parenthesis with the print command is in general a bad habit to get into. Se the print documentation for some details:
http://perldoc.perl.org/functions/print.html
print("$HeaderHash{'Deal Name'}\n");
better written as:
print "$HeaderHash{'Deal Name'}\n";
while this is not the source of your problem, using parenthesis with the print command is in general a bad habit to get into. Se the print documentation for some details:
http://perldoc.perl.org/functions/print.html
•
•
Join Date: Oct 2007
Location: Russia, St-Petersburg
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
I will go out on a limb, and assume that you passed this hash to a method, and call the print statement in that method. In this case the print statement needs to be changed to:
If that is not the case, then as KevinADC has said (and cerf_machine repeated without acknowledgement), your problem is elsewhere.
print "$HeaderHash->{'Deal Name'}\n";If that is not the case, then as KevinADC has said (and cerf_machine repeated without acknowledgement), your problem is elsewhere.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
•
•
•
•
•
•
•
•
DaniWeb Perl Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- how to read unix profile variable into Perl (Perl)
- How do i run perl on windows 98 (Perl)
- Unix shell access from Perl script (Perl)
- noob on perl... please help (Perl)
- who here can do perl? (Perl)
- perl script help re: scope/structure for noob (Perl)
- How to access the system environment variables in windows (Perl)
- Perl/CGI (Reading Data) Part II (Computer Science and Software Design)
Other Threads in the Perl Forum
- Previous Thread: Issues?
- Next Thread: retrieving CLOB from an Oracle stored function within perl



Linear Mode