Sent this to alt... by mistake - let's try here.
In Perl, I have:
my ($title, $chan, $call, $sTime, $dur) = split /~~/, $el;
I've converted this to JavaScript thusly:
var flds = el.split('~~'); // split into array, then to vars
var title = flds[0];
var chan = flds[1];
var call = flds[2];
var sTime = flds[3];
var dur = flds[4];
I was hoping for a more straightforward/cleaner syntax - something like:
var (title, chan, call, sTime, dur) = el.split('~~'); // do it all in one like Perl
Any way to do that?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 251 |
Nodes: | 16 (2 / 14) |
Uptime: | 99:54:54 |
Calls: | 5,516 |
Calls today: | 4 |
Files: | 11,669 |
Messages: | 5,089,169 |