![]() |
#1 |
Registered User
Join Date: Mar 2018
Posts: 341
|
How to prevent file truncation in Perl?
Opening a file in write-only mode truncates data of the file. To prevent it, use sign '+>'. This will prevent your data and you can append new data in the last of the file.
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How will you open a file in write-only mode in Perl? | Pavan Techn | Cgi-perl | 0 | 06-01-2018 11:10 PM |
How will you open a file in read-only mode in Perl? | Pavan Techn | Cgi-perl | 0 | 06-01-2018 11:09 PM |
How will you create a file in Perl? | Pavan Techn | Cgi-perl | 0 | 06-01-2018 11:09 PM |