Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Batch to Perl translation (just 1 line, not the whole script)

by aitap (Chaplain)
on Aug 07, 2012 at 20:50 UTC ( #986083=note: print w/ replies, xml ) Need Help??


in reply to Batch to Perl translation (just 1 line, not the whole script)

open my $fh, ">>", $ARGV[0] || die "$0: $ARGV[0]: $!\n"; # open the file specified in the first argument in append mode print $fh q{BAYES; bayesClass=nameOfClassVariable; END}; # write the text; close $fh; # close the file;
See open, print, Quote and Quote like Operators, close for more information.
Sorry if my advice was wrong.


Comment on Re: Batch to Perl translation (just 1 line, not the whole script)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-04-17 23:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (459 votes), past polls