Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Access and modify specific element of tab delimited .txt file

by duelafn (Parson)
on Mar 30, 2016 at 14:05 UTC ( [id://1159131]=note: print w/replies, xml ) Need Help??


in reply to Access and modify specific element of tab delimited .txt file

If you literally only need to create first entry, don't split?

perl -pe 'BEGIN { print "ID"; }' /tmp/test.dat

Good Day,
    Dean

Replies are listed 'Best First'.
Re^2: Access and modify specific element of tab delimited .txt file
by mr_mischief (Monsignor) on Mar 31, 2016 at 15:19 UTC

    This is an excellent example of finding the X in an X/Y problem. You've done a good job of separating the problem from the proposed solution on even a fairly simple example program. I'm going to bookmark this to reference for future discussions of this sort.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1159131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-18 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found