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

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

by aitap (Deacon)
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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986083]
[LanX]: interpolation! like in a "string"
[Lady_Aleena]: LanX, I just never thought I would be explaining perl regex to others. It is usually others explaining why a regex isn't working to me.
[Discipulus]: congratulations shmem! (was my last upvote? ;=)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2017-04-28 09:51 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (520 votes). Check out past polls.