Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Text File Manipulation

by soonix (Canon)
on Jan 14, 2020 at 11:54 UTC ( #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
Node Status?
node history
Node Type: note [id://11111404]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2020-06-05 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (35 votes). Check out past polls.

    Notices?