|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Quick question, spaces..
Quick question, since I'm kind of busy right now I can't experiment, but...
if you have a textbox and you type in "Joe Smith " (with spaces at the end) will your $var contain "Joe Smith" or "Joe Smith " with the spaces? How about with spaces in front, " Joe Smith"? I'm asking because theres's this problem with one of my scripts that I have never experienced and I think it might be because of excess space padding. |
|
#2
|
|||
|
|||
|
You will get the spaces on either side. I experimented to be sure.
When you think about it, there wouldn't be much need for a function like 'chop' if Perl automatically took care of space padding.
__________________
- dsb - ![]() Perl Guy |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Quick question, spaces.. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|