RE: getting the calling function name.

2001-08-07 Thread Wagner Jeff Civ Logicon/TTMS
The following rough code example will get you what you want. The parameter passed to "caller" tells the function how many frames to go back in the call stack. The fourth list element (which is number 3, starting at 0) contains the name of the subroutine at that frame. ##

RE: Confusion with hash reference and Mail::IMAPClient

2001-08-03 Thread Wagner Jeff Civ Logicon/TTMS
Hi, In the absence of an answer from the more experienced list members, I'll give it a shot. I don't know what kind of structure is being returned, but maybe you can use the Data::Dumper module to format the output, inserting the following two lines (in the appropriate places). use Data::Du

RE: check array element (HELP)

2001-08-01 Thread Wagner Jeff Civ Logicon/TTMS
Let me see if I understand your one-liner... * the "map" function creates a hash, using the array elements as key names, automatically eliminating duplicates * the output from the "keys" function (an array) is compared to the original array, both in scalar context, so the number of elements wil

RE: check array element (HELP)

2001-08-01 Thread Wagner Jeff Civ Logicon/TTMS
for (my $i=0; $i<$n; $i++) is preferable to for my $i (0...$n-1) since the latter creates the entire array and then goes through the elements, instead of merely going from one integer to the next. hth! christopher -Original Message- From: Wagner Jeff Civ Logicon/TTMS [mailt

RE: check array element (HELP)

2001-07-31 Thread Wagner Jeff Civ Logicon/TTMS
Hi, I am one of the beginners list's many voyeurs. Can you explain your code? Where does the "%found_one" hash get its initial value? I understand that "@_" represents the list that was passed to the subroutine and that "$_" is the current list element for each loop iteration. Does your code a