8 More Discussions You Might Find Interesting
1. Linux
Hi
#cat /etc/redhat-release
CentOS release 6.7 (Final)
1. Installed one application and when access from web browser http..... it returns below error.
-------------------------------------------------------
Internal Server Error
The server encountered an internal error or... (1 Reply)
Discussion started by: iqtan
1 Replies
2. HP-UX
==================================================================================
SEGV_MAPERR: Address not mapped to object
fffffffffffffff0 (Memory location which caused fault)
------------------ C-STACK ----------------------
(0) 0x40000000007622f0 CTrcStack2 + 0x1d0 at dptstack_mt.c:228... (6 Replies)
Discussion started by: sidharthmellam
6 Replies
3. Shell Programming and Scripting
Hi,
I need a quick help from GURUs of PERL.
I moved a website to a new location and got an error "Internal Server Error" instead of specific error. As i don't know PERL so i don't know how to fix it.
Can anybody help me to fix this error or to generate a specific error which i can... (3 Replies)
Discussion started by: shahzad79
3 Replies
4. AIX
Dear experts,
please inform when i am trying to use dbx to debug my code,
iam getting following error:
internal error: expected member attribute 's', 'p', 'r' or 'b', found... (1 Reply)
Discussion started by: vin_pll
1 Replies
5. UNIX for Advanced & Expert Users
Hi,
I need to redirect internal internet requests to a auth client site siting on the gateway. Currently users that are authenticated to access the internet have there mac address listed in the FORWARD chain. All other users need to be redirected to a internal site for authentication.
Can... (1 Reply)
Discussion started by: mshindo
1 Replies
6. Shell Programming and Scripting
:)Hi,
I am working on perl-cgi script which i wrote on unix server, and now i want to run it from windows.
Have put DNS entry, sybase and apache is running...
But still I am getting 500 Internal Server Error!!!
what could be the reason? (2 Replies)
Discussion started by: darshakraut
2 Replies
7. UNIX for Advanced & Expert Users
Hi,
I'm running a COBOL process (with subroutines in standard C accessing an oracle database using OCI calls, using shared memories and sem etc....) on an AIX 5.1 machine.
Under unusually heavy conditions (millions of loops in the process) I've got the following error:
Execution error : file... (0 Replies)
Discussion started by: Isax50
0 Replies
8. UNIX for Dummies Questions & Answers
Hey guys, need some help. Running AIX Version 5.2 and one of our cron jobs is writing errors to a log file. Any ideas on the following error message.
Error: Internal system error: Unable to initialize standard output file
I'm guessing more info might be needed, so let me know.
Thanks (2 Replies)
Discussion started by: firkus
2 Replies
Heap(3pm) User Contributed Perl Documentation Heap(3pm)
NAME
Heap - Perl extensions for keeping data partially sorted
SYNOPSIS
use Heap;
my $heap = Heap->new;
my $elem;
use Heap::Elem::Num(NumElem);
foreach $i ( 1..100 ) {
$elem = NumElem( $i );
$heap->add( $elem );
}
while( defined( $elem = $heap->extract_top ) ) {
print "Smallest is ", $elem->val, "
";
}
DESCRIPTION
The Heap collection of modules provide routines that manage a heap of elements. A heap is a partially sorted structure that is always able
to easily extract the smallest of the elements in the structure (or the largest if a reversed compare routine is provided).
If the collection of elements is changing dynamically, the heap has less overhead than keeping the collection fully sorted.
The elements must be objects as described in "Heap::Elem" and all elements inserted into one heap must be mutually compatible - either the
same class exactly or else classes that differ only in ways unrelated to the Heap::Elem interface.
METHODS
$heap = HeapClass::new(); $heap2 = $heap1->new();
Returns a new heap object of the specified (sub-)class. This is often used as a subroutine instead of a method, of course.
$heap->DESTROY
Ensures that no internal circular data references remain. Some variants of Heap ignore this (they have no such references). Heap
users normally need not worry about it, DESTROY is automatically invoked when the heap reference goes out of scope.
$heap->add($elem)
Add an element to the heap.
$elem = $heap->top
Return the top element on the heap. It is not removed from the heap but will remain at the top. It will be the smallest element on
the heap (unless a reversed cmp function is being used, in which case it will be the largest). Returns undef if the heap is empty.
This method used to be called "minimum" instead of "top". The old name is still supported but is deprecated. (It was confusing to use
the method "minimum" to get the maximum value on the heap when a reversed cmp function was used for ordering elements.)
$elem = $heap->extract_top
Delete the top element from the heap and return it. Returns undef if the heap was empty.
This method used to be called "extract_minimum" instead of "extract_top". The old name is still supported but is deprecated. (It was
confusing to use the method "extract_minimum" to get the maximum value on the heap when a reversed cmp function was used for ordering
elements.)
$heap1->absorb($heap2)
Merge all of the elements from $heap2 into $heap1. This will leave $heap2 empty.
$heap1->decrease_key($elem)
The element will be moved closed to the top of the heap if it is now smaller than any higher parent elements. The user must have
changed the value of $elem before decrease_key is called. Only a decrease is permitted. (This is a decrease according to the cmp
function - if it is a reversed order comparison, then you are only permitted to increase the value of the element. To be pedantic, you
may only use decrease_key if $elem-cmp($elem_original) <= 0> if $elem_original were an elem with the value that $elem had before it was
decreased.)
$elem = $heap->delete($elem)
The element is removed from the heap (whether it is at the top or not).
AUTHOR
John Macdonald, john@perlwolf.com
COPYRIGHT
Copyright 1998-2007, O'Reilly & Associates.
This code is distributed under the same copyright terms as perl itself.
SEE ALSO
Heap::Elem(3), Heap::Binary(3), Heap::Binomial(3), Heap::Fibonacci(3).
perl v5.8.8 2007-10-23 Heap(3pm)