Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Append to file or create file depending on input filename.

by moritz (Cardinal)
on Nov 20, 2009 at 14:14 UTC ( #808448=note: print w/replies, xml ) Need Help??


in reply to Re: Append to file or create file depending on input filename.
in thread Append to file or create file depending on input filename.

You can also write the substitution a bit simpler:
$outfile =~ s/^>//

I know that PBP encourages you to always use xms, and \A instead of ^, but that doesn't mean it's the most elegant or simple way to write it.

Replies are listed 'Best First'.
Re^3: Append to file or create file depending on input filename.
by markuhs (Scribe) on Nov 20, 2009 at 15:10 UTC
    As this problem was caused by applying things learned from PBP I surely will use the code as provided by bellaire. ;)

    ++bellaire! Thank you!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2019-11-13 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (74 votes). Check out past polls.

    Notices?