Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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
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 chanting in the Monastery: (3)
As of 2021-04-11 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?