Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^7: to copy certain content in file & repeat it .

by Anonymous Monk
on Jul 01, 2011 at 11:20 UTC ( #912337=note: print w/replies, xml ) Need Help??

in reply to Re^6: to copy certain content in file & repeat it .
in thread to copy certain content in file & repeat it .

i am not using push because my file is very huge around 400 lines so i dont want to run out of mem

If you're concerned about memory, why did you chose the approach of building an array?

If you want your program to work , given the approach you've chosen, you have to put data in the array, otherwise there is no data to print later (at which point you can empty the array).

and also i am not using any module ..

How is that relevant?

so if you can write the certain part where i am making mistake

No thanks. I explained in sufficient detail how you should make the changes. If I make the changes for you, you learn nothing. I'm attempting to teach you to fish (Give a fish or teach to fish?), if you're willing.

  • Comment on Re^7: to copy certain content in file & repeat it .

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://912337]
[oiskuu]: I'm unfamiliar with android or SELinux. But I believe there is nothing of a kind. Unless you play with capabilities or build your own containers/ namespaces.
[davido]: I am not finding closing STDIN to be an adequate means of making getlogin return undef.
[Corion]: Maybe doing a double-fork (daemonizing) can make go that information away, but maybe not

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2017-06-23 19:30 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (554 votes). Check out past polls.