Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Text File Manipulation

by soonix (Canon)
on Jan 14, 2020 at 11:54 UTC ( [id://11111404]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Text File Manipulation
in thread Text File Manipulation

Seconding hippo's comment, perhaps it helps to understand that
print "something";
(which you are already using), is just an abbreviation for
print STDOUT "something";
and instead of
open ($fh, '>', $temporary_fileName) or die $!; `echo "... long string ..." > $temporary_fileName`; close ($fh);
where open and close are effectively useless, you should use
open ($fh, '>', $temporary_fileName) or die $!; print$fh "... long string ..."; close ($fh);
(I prefer to put the file handle after print without a space to help remembering there's no comma after the file handle)

If you feel adventurous, you might to look over Text::Table Tutorial, but that's an advanced topic, just to see what's possible.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2024-04-25 00:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found