Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Perl - Boolean string expressions

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1671
Location: Guisborough

PostPosted: Wed Oct 11, 2006 3:03 pm    Post subject: Perl - Boolean string expressions Reply with quote

Hi,

I'm in the middle of frying my brian and need some assistance.

Can someone explain to me why:

$A = "xyz";
$B = "stu";

print $A gt $B;

is true?

I can't find any rhyme or reason to what the value's are or how it make's the comparison.
Back to top
View user's profile Send private message MSN Messenger
M-Saunders
LXF regular


Joined: Mon Apr 11, 2005 1:14 pm
Posts: 2893

PostPosted: Wed Oct 11, 2006 4:42 pm    Post subject: Re: Perl - Boolean string expressions Reply with quote

Ram wrote:
I'm in the middle of frying my brian


Maybe Brian could help if you were nicer to him! Smile

M
Back to top
View user's profile Send private message Visit poster's website
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1671
Location: Guisborough

PostPosted: Wed Oct 11, 2006 5:48 pm    Post subject: Reply with quote

C, I'd told U it was fried Surprised
Back to top
View user's profile Send private message MSN Messenger
MartyBartfast
LXF regular


Joined: Mon Aug 22, 2005 8:25 am
Posts: 814
Location: Hants, UK

PostPosted: Wed Oct 11, 2006 9:33 pm    Post subject: Reply with quote

Back on topic it sounds right to me, xyz is 'greater than' stu, in as much as it would come second if they're sorted alphabetically.
_________________
I have been touched by his noodly appendage.
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1671
Location: Guisborough

PostPosted: Wed Oct 25, 2006 1:50 pm    Post subject: Reply with quote

Brian still fired, thought I'd replied to this.

Yes Martin that's what I thought but the damned CBT course had it wrong. Very Happy

Cheers
_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
Steogede
LXF regular


Joined: Thu May 04, 2006 6:39 pm
Posts: 146

PostPosted: Wed Oct 25, 2006 5:15 pm    Post subject: Reply with quote

Ram wrote:
Brian still fired, thought I'd replied to this.

Yes Martin that's what I thought but the damned CBT course had it wrong. Very Happy

Cheers


You need to be able to perform boolean operations on strings using perl, in order to learn to ride a motorcycle now? What will the DSA think of next.
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1671
Location: Guisborough

PostPosted: Tue Oct 31, 2006 3:26 pm    Post subject: Reply with quote

Steogede wrote:
Ram wrote:
Brian still fired, thought I'd replied to this.

Yes Martin that's what I thought but the damned CBT course had it wrong. Very Happy

Cheers


You need to be able to perform boolean operations on strings using perl, in order to learn to ride a motorcycle now? What will the DSA think of next.



It was a highspeed crash course......
Back to top
View user's profile Send private message MSN Messenger
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast