i'm new to tcl and familiar with perl
i prob where i have to count the number of phone
by user
example
JOHN: 234-4534
JOHN: 234-1212
SARAH: 567-3434
SARAH: 646-1212
ALICE: 234-2342
if perl i
can do
while (<>) {
$COUNTPHONE{$1}++ if /^(\S+): /;
}
how can i do the same thing in TCL
THX
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.