Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: file header change

by Anonymous Monk
on Feb 05, 2013 at 11:27 UTC ( #1017123=note: print w/ replies, xml ) Need Help??


in reply to Re^2: file header change
in thread file header change

Um, wow, what tutorial are you reading?

I suggest starting with perlintro , esp Files and I/O and Simple matching and
perlfaq4#How do I find the first array element for which a condition is true?
perlfaq4#How do I process/modify each element of an array?
perlfaq5#How do I change, delete, or insert a line in a file, or append to the beginning of a file?
Re: split line from one point
Write to existing file with character insert

I also reccomend you read Tutorials: Context tutorial, because an array in scalar context returns the number of elements in the array -- not that you need an array for this task, because you don't, as all the examples above show

Also download a copy of Modern Perl and use it as a reference and see also http://perl-tutorial.org/


Comment on Re^3: file header change

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2015-07-02 01:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls