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: | 418 |
Nodes: | 16 (0 / 16) |
Uptime: | 16:00:19 |
Calls: | 8,795 |
Calls today: | 7 |
Files: | 13,300 |
Messages: | 5,966,724 |