| View previous topic :: View next topic |
| Author |
Message |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1547 Location: Guisborough
|
Posted: Wed Oct 11, 2006 3:03 pm Post subject: Perl - Boolean string expressions |
|
|
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 |
|
 |
M-Saunders Moderator

Joined: Mon Apr 11, 2005 1:14 pm Posts: 2881
|
Posted: Wed Oct 11, 2006 4:42 pm Post subject: Re: Perl - Boolean string expressions |
|
|
| Ram wrote: | | I'm in the middle of frying my brian |
Maybe Brian could help if you were nicer to him!
M |
|
| Back to top |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1547 Location: Guisborough
|
Posted: Wed Oct 11, 2006 5:48 pm Post subject: |
|
|
C, I'd told U it was fried  |
|
| Back to top |
|
 |
MartyBartfast LXF regular

Joined: Mon Aug 22, 2005 8:25 am Posts: 780 Location: Hants, UK
|
Posted: Wed Oct 11, 2006 9:33 pm Post subject: |
|
|
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 |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1547 Location: Guisborough
|
Posted: Wed Oct 25, 2006 1:50 pm Post subject: |
|
|
Brian still fired, thought I'd replied to this.
Yes Martin that's what I thought but the damned CBT course had it wrong.
Cheers _________________
Ubuntu LXDE 12.04 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
|
|
| Back to top |
|
 |
Steogede LXF regular
Joined: Thu May 04, 2006 6:39 pm Posts: 145
|
Posted: Wed Oct 25, 2006 5:15 pm Post subject: |
|
|
| 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.
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 |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1547 Location: Guisborough
|
Posted: Tue Oct 31, 2006 3:26 pm Post subject: |
|
|
| 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.
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 previous topic :: View next topic |
|