PilotinControl has asked for the wisdom of the Perl Monks concerning the following question:
Good Evening Esteemed Monks.
My question is fairly simply. I would like to move the cursor back to edit each entry. Please point me in the right direction. I've posted my simple code below to build upon. Thanks in advance!
#!/usr/bin/perl open (FILE, 'data.txt'); while (<FILE>) { chomp; ($name, $email, $phone) = split("\t"); print "Name: $name\n"; print "Email: $email\n"; print "Phone: $phone\n"; print "---------\n"; } close (FILE); exit; __END__ Tom tom@example.com 111-1111 Dave dave@example.com 222-2222 Test test@example.com 333-3333
The output is shown below:
Name: Tom
Email: Tom@example.com
Phone: 111-1111
---------
Name: Dave
Email: dave@example.com
Phone: 222-2222
---------
Name: Test
Email: test@example.com
Phone: 333-3333
---------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tab Cursor Backspace
by LanX (Saint) on Apr 29, 2014 at 23:26 UTC | |
by PilotinControl (Pilgrim) on Apr 29, 2014 at 23:44 UTC | |
by LanX (Saint) on Apr 29, 2014 at 23:56 UTC | |
by PilotinControl (Pilgrim) on Apr 30, 2014 at 16:41 UTC | |
by Anonymous Monk on Apr 30, 2014 at 18:11 UTC | |
|