ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
Re: [Activetcl] split doing two different things
by Michael Bahr other posts by this author
Apr 8 2008 11:58AM messages near this date
view in the new Beta List Site
Re: [Activetcl] split doing two different things | Re: [Activetcl] split doing two different things
>  Are you suggesting the first is ("a", "b", "c", undef)?  Yes, 

undef is a Perlism.

>  indeed, that _is_ different than ("a", "b", "c", "").  
>  However, the original data was:
>  
>      "a,b,c,"

The original data was ...Ã?121314Ã?121314Ã?121314Ã? where Ã? is the delimiter which is the s
ame as Jeff's a,b,c, that is <cr>  terminated, like a line of text being read.

>      
>  How do you express "undef" in a stringified representation of data?
>  Hint: only if you pre-define a means to do so, defining a 
>  semantic rule to the data _after_ it's been parsed.  
>  Otherwise, it _is_ an element that is just an empty string at 
>  the end.  Which is, exactly what Tcl gives you.

Well then I have to disagree because an empty string implies that something is/was there.  A
nalogous to writing a string then deleting it in a field, a zero-byte string remains.  But w
e now that is not the case.  However a better representation would be NULL because we know t
hat nothing is there except a carriage return.  So how do you express a NULL?  I think Tcl i
s presupposing that something is there.

Mike...
_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Gene Osteen
Jeff Hobbs
Flavio Salgueiro
Michael Bahr
Jeff Hobbs
Michael Bahr
Dossy Shiobara
Michael Bahr
Dossy Shiobara
Michael Bahr
Jeff Hobbs
Enrico Herzke
Michael Bahr
Jeff Dinsmore
Michael Bahr
Gene Osteen
Jeff Dinsmore
Enrico Herzke

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved