how to find missing value.

2005-10-10 Thread Jabir Ahmed
Hello I need to know the best way to get a missing element from an array. i have an array @a of size containing values 1 to 101 with one value missing. eg: @a=qw( 1 2 3 4 5 6 8 9 10 101); (the array is not sorted and its only to make it easier to understand) now i need to find out the mi

finding an lement in an array

2005-10-07 Thread Jabir Ahmed
the element in the array.. thanks in advance jabir ahmed I do the diffcult immediately,but the impossible take's a little longer!!! Cresent canaopy apartments #19 Davis Road, Thomas town, Bangalore -84 Phone (mobile) : +91-98867 01148 E-Mail: [EMAIL PROTECTED],[EMAIL PROT

finding an lement in an array

2005-10-07 Thread Jabir Ahmed
array.. thanks in advance jabir ahmed --- [EMAIL PROTECTED] wrote: > Good Afternoon > > I am attempting to develop a script that will parse > a directory listing and return only directory names > that match a given expression. > > It would make sense to me to use File::

Re: two questions

2005-10-06 Thread Jabir Ahmed
> On Thu, 6 Oct 2005, ZHAO, BING wrote: > > >1. How do I change the unix system > background to black, > > mine is while which is so annoying whenever I do > perl. > Hello , Try $ echo -e "\33[40m" #to change the background color and $ echo -e "\33[33m" #to change the f

Array or arrays

2005-10-03 Thread Jabir Ahmed
$file=$ARGV[0] || die "File not found $!"; my %uni=(); open (FH,"sort $file|"); $reccnt=0; while () { $line=$_; my @details=split('\t',$line); [EMAIL PROTECTED]; $reccnt+=1; } $file=$ARGV[0] || die "File not found $!"; my %uni=(); open (FH,"sort $file|"); $reccnt=

Re: how to use perl modules

2005-09-27 Thread Jabir Ahmed
--- test.pm --- package test; sub ReturnValue() { my $a=10; return ($a); } 1; # as a module usually has a return value --- call.pl -

module and a class?????

2005-09-15 Thread Jabir Ahmed
hello can anyone tell me the basic difference between a module and a class in perl. i would be glad if you could give a brief example.; thanks jabir I do the diffcult immediately,but the impossible take's a little longer!!! Cresent canaopy apartments #19 Davis Road, Thomas town, Bangalor