$temp='196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneproteinSequence
:196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneprotein';
#$name = $1;
$temp = ~s/'//g;
print $temp;
> its gives me: 4294967295 i dont know what this is...
I misspoke, slightly:
$temp = ~s/'//g;
the s/// is working on the current $_ and then taking the binary negation
(perldoc perlop):
Unary "~" performs bitwise negation, i.e., 1âs complement. For example,
"0666 & ~027" is 0640. (See also "Integer
Arithmetic" and "Bitwise String Operators".) Note that the width
of the result is platform-dependent: ~0 is 32 bits
wide on a 32-bit platform, but 64 bits wide on a 64-bit platform,
so if you are expecting a certain bit width, remember
to use the & operator to mask off the excess bits.
and that - so '4294967295' is probably the binary negation of zero unless
you happen to have something in $_. Nope:
$ perl -e 'print ~4294967295'
0
a
Test:
$temp='196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneproteinSequence
:196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneprotein';
print $temp, "\n";
#$name = $1;
$temp = ~s/'//g;
print $temp, "\n";
$temp='196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneproteinSequence
:196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneprotein';
$temp = s/'//g;
print $temp, "\n";
$temp='196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneproteinSequence
:196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneprotein';
$temp =~ s/'//g;
print $temp, "\n";
Andy Bach
Systems Mangler
Internet: [EMAIL PROTECTED]
VOICE: (608) 261-5738 FAX 264-5932
"Procrastination is like putting lots and lots of commas in the sentence
of your life."
Ze Frank
http://lifehacker.com/software/procrastination/ze-frank-on-procrastination-235859.php
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs