私はPerlにはかなり慣れていますが、それを使ったことはありません...しかし、今は使いたいです。ここでWindows 7でperlをインストールする
は私がやったことです: - :
dnacon
http://www.activestate.com/activeperl/downloads
私はユニバーサルバージョンがインストール私のプログラムが動作してテストするには5.12.4.1205
を、私は次の小さなプログラムを使用しました.plx
#i/Perl64/bin/perl -w
#Example 1-1 Concatenating DNA
$DNA1 = 'ATTTGGTAAAATGTATA'
$DNA2 = 'TTTTGGGTTTGAAAT'
print "Here are two DNA fragments: \n\n"
print $DNA1, "\n\n"
print $DNA2, "\n\n"
$DNA3 = "$DNA1$$DNA2"
print "$DNA3\n\n
私はそれを実行しようとすると、エラーのあるコマンドプロンプトが表示されます。
あまりにも基本的な質問には申し訳ありません...
EDTIS:
When I just type dnacon.plx, it is seems that it is working, but with error !!!
c:\myperllessions>dnacon.plx
Scalar found where operator expected at C:\myperllessions\dnacon.plx line 5, nea
r "$DNA2"
(Missing semicolon on previous line?)
syntax error at C:\myperllessions\dnacon.plx line 5, near "$DNA2 "
Execution of C:\myperllessions\dnacon.plx aborted due to compilation errors.
行くために、私は良いアム???何が原因でエラーが発生する可能性があります...コンパイルエラー?
編集:
私が使用しています今、次の:これは正しいのですか?
#i/Perl64/bin -w
編集:
私を次のように私のスクリプトを変更:
#i/Perl64/bin -w
#Example 1-1 Concatenating DNA
use strict;
use warnings;
$DNA1 = 'ATTTGGTAAAATGTATA';
$DNA2 = 'TTTTGGGTTTGAAAT';
print "Here are two DNA fragments: \n\n";
print $DNA1, "\n\n";
print $DNA2, "\n\n";
$DNA3 = "$DNA1$$DNA2";
print "$DNA3\n\n";
私は、次のエラーを得た:
C:\ myperllessions>
Global symbol "$DNA1" requires explicit package name at C:\myperllessions\dnacon
.plx line 5.
Global symbol "$DNA2" requires explicit package name at C:\myperllessions\dnacon
.plx line 6.
Global symbol "$DNA1" requires explicit package name at C:\myperllessions\dnacon
.plx line 9.
Global symbol "$DNA2" requires explicit package name at C:\myperllessions\dnacon
.plx line 10.
Global symbol "$DNA3" requires explicit package name at C:\myperllessions\dnacon
.plx line 12.
Global symbol "$DNA1" requires explicit package name at C:\myperllessions\dnacon
.plx line 12.
Global symbol "$DNA2" requires explicit package name at C:\myperllessions\dnacon
.plx line 12.
Global symbol "$DNA3" requires explicit package name at C:\myperllessions\dnacon
.plx line 13.
Execution of C:\myperllessions\dnacon.plx aborted due to compilation errors.
をdnacon.plx
私の問題ですか?今プログラミング知識やインストールと関係するもの?????
'perl'のフルパスを使用していますか? 'C:\ Perl64 \ bin \ perl'? – Ryan
C:\ Perl64 \ binは、perl.exeが – jon
にあるところです。単に 'perl'と打つのではなく、それを使うのですか? – Ryan