Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi, the code you posted does not compile, part of asking a question effectively, is to make sure your code compiles before posting.
This reads from a file until it reaches the end. Filehandles are iterators. Once you reach the end, the subsequent while(<FH>) loop will not be entered
@arr =$_; This sets @arr to the value of $_; It doesn't add values to @arr, for that you need the push function In reply to Re^3: to copy certain content in file & repeat it .
by Anonymous Monk
|
|