01-21-2009
Zaxon,
Use != in case of numeric value comparision and use ne for string/character value comparision.
Cheers,
gehlnar
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear All,
I am trying to write an script to calculate geometric centre of selected residues of a protein structure. Say I have a PDB file (a text containing the x, y, and z coordinates of atoms of a protein). I want to extract the X coordinates of the atoms belonging to the interested residues... (2 Replies)
Discussion started by: siavoush
2 Replies
2. Shell Programming and Scripting
Hello
i will like to know please how can i determine file type inside perl script
not using the unix "file" program
Thanks allot (1 Reply)
Discussion started by: umen
1 Replies
3. Shell Programming and Scripting
hello all how can i get the type of variable in perl like
typeof(var); in javascript for instance ? to know if the variable is int or string ? (2 Replies)
Discussion started by: umen
2 Replies
4. Shell Programming and Scripting
Hello:
Is there any way to tell the type of a passed or entered variable, if it is a string or integer,...etc.
Thanks a lot (2 Replies)
Discussion started by: aladdin
2 Replies
5. Shell Programming and Scripting
Can anybody please tell me how can I determine whether a file is SYMBOLIC LINK, using the stat() function ?
So far I have this:
my @attrs = stat($fileName);
my $mode = $attrs;
What next ? (1 Reply)
Discussion started by: the_learner
1 Replies
6. Shell Programming and Scripting
I am using perl 5.8.0.
I need to check some values to see it they are floats. Our system does not have Data::Types so I can't use is_float. Is there something else that I can use? The only thing in Data is Dump.pm. I am not allowed to download anything to our system so I have to use what I have.... (3 Replies)
Discussion started by: ajgwin
3 Replies
7. Programming
Is it permitted to type-cast a member variable passed in as a parameter in a member const method ..
I am doing something like :
in a
return-type method () const {
variable other = long(member variable)
}
this other assigned variable is not updating and I wonder if type-casting in such... (1 Reply)
Discussion started by: shriyer123
1 Replies
8. Shell Programming and Scripting
Hi,
I have given like this to get the time of the sub routine.
my $start = localtime();
print "\n start time: $start \n";
Output
start time: Fri Apr 29 01:01:31 2011
I want to know what is the format of the time.
I am not able to follow is is HH:MM:SS or MM:HH:SS os... (2 Replies)
Discussion started by: vanitham
2 Replies
9. Shell Programming and Scripting
I have a question about the type of this variable
checkU= sudo cat /etc/passwd: grep $uname: wc -l
I write a script to check the existent of username that get from the keyboard. If there is no username,it will create the username else it show the 'Duplicate name" message.
The problem is it... (4 Replies)
Discussion started by: thsecmaniac
4 Replies
10. Programming
I am confused by the value of "currdisk->currangle" after adding operation. Initially the value of "currdisk->currangle" is 0.77500000000000013, but after adding operation, it's changed to "-nan(0x8000000000000)", Can anyone explain ? Thanks! The following is the occasion of gdb debugging.
3338 ... (8 Replies)
Discussion started by: 915086731
8 Replies
LEARN ABOUT SUSE
gtk2::gdk::geometry
Gtk2::Gdk::Geometry(3) User Contributed Perl Documentation Gtk2::Gdk::Geometry(3)
NAME
Gtk2::Gdk::Geometry
METHODS
geometry = Gtk2::Gdk::Geometry->new
scalar = $object->base_height ($newvalue=undef)
o $newvalue (scalar)
scalar = $object->base_width ($newvalue=undef)
o $newvalue (scalar)
(new_width, new_height) = $geometry->constrain_size ($width, $height)
(new_width, new_height) = $geometry->constrain_size ($flags, $width, $height)
o ... (list)
o $flags (Gtk2::Gdk::WindowHints) optional, usually inferred from $geometry
The $flags argument, describing which fields in the geometry are valid, is optional. If omitted it will be inferred from the geometry
itself.
scalar = $object->gravity ($newvalue=undef)
o $newvalue (scalar)
scalar = $object->height_inc ($newvalue=undef)
o $newvalue (scalar)
scalar = $object->max_aspect ($newvalue=undef)
o $newvalue (scalar)
scalar = $object->max_height ($newvalue=undef)
o $newvalue (scalar)
scalar = $object->max_width ($newvalue=undef)
o $newvalue (scalar)
scalar = $object->min_aspect ($newvalue=undef)
o $newvalue (scalar)
scalar = $object->min_height ($newvalue=undef)
o $newvalue (scalar)
scalar = $object->min_width ($newvalue=undef)
o $newvalue (scalar)
scalar = $object->width_inc ($newvalue=undef)
o $newvalue (scalar)
scalar = $object->win_gravity ($newvalue=undef)
o $newvalue (scalar)
ENUMS AND FLAGS
flags Gtk2::Gdk::WindowHints
o 'pos' / 'GDK_HINT_POS'
o 'min-size' / 'GDK_HINT_MIN_SIZE'
o 'max-size' / 'GDK_HINT_MAX_SIZE'
o 'base-size' / 'GDK_HINT_BASE_SIZE'
o 'aspect' / 'GDK_HINT_ASPECT'
o 'resize-inc' / 'GDK_HINT_RESIZE_INC'
o 'win-gravity' / 'GDK_HINT_WIN_GRAVITY'
o 'user-pos' / 'GDK_HINT_USER_POS'
o 'user-size' / 'GDK_HINT_USER_SIZE'
SEE ALSO
Gtk2
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::Gdk::Geometry(3)