Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Perl - Remove duplicate based on substring and check on delimiters

by linuxer (Curate)
on May 18, 2016 at 21:08 UTC ( #1163381=note: print w/replies, xml ) Need Help??


in reply to Perl - Remove duplicate based on substring and check on delimiters

You can use chmod to change file's permissions if you have sufficient permissions to chmod the file.

You should check open's success, so you know directly if open was successful or not and you can behave accordingly.

open(my $handle, '>>', $filename) or die "open($filename,w+) failed: $ +!";
edit: fixed typo
  • Comment on Re: Perl - Remove duplicate based on substring and check on delimiters
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2022-05-28 02:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?