私はシェルにはないので、あなたはおそらく、URLの周りに引用符を配置する必要があり渡すコマンドライン引数それが
$url="http://www.hotels.com/search/search.html?destinationName=Dallas%2C+Texas%2C+United+States&arrivalDate=10%2F27%2F11&departureDate=10%2F31%2F11&numberOfRooms=1&numberOfAdults=1";
system("perl x.pl $url"); // this is giving me error because the $url consists of dot operator.
ええ、そうではありません。 –
なぜPerlの 'system'を使って別のPerlスクリプトを実行していますか? –
@BenVoigt:どうしてですか?これは、Perlスクリプトから他のコマンドを呼び出すようなものです。 (あなたはおそらく 'x.pl'を呼び出したスクリプトに組み込むことができますが、それは必ずしも最良の解決策ではありません。) –