---
title: "windows下perl开发环境搭建"
author: "liyebing"
date: "2011-07-09T22:07:39Z"
tags: []
categories: ["编程语言"]
slug: "windows-perl"
draft: false
lastmod: "2011-07-09T22:07:39Z"
id: 1120761
url: "https://liyebing.iteye.com/blog/1120761"
---

1、下载并安装ActivePerl，貌似不需要额外的配置，一步一步按照提示安装完毕即可

 

2、安装UltraEdit,在这里打算用这个文本编辑器作为perl学习的IDE，配置  高级---&gt;工具配置,如下图所示：

 

     ![](http://dl.iteye.com/upload/picture/pic/94029/03fef863-37b5-3515-bd40-49555630d9bc.jpg)

 

    ![](http://dl.iteye.com/upload/picture/pic/94031/1c79ad9d-35f7-352c-a92c-77cd7d80fea6.jpg)

 

    配置好之后，可见在高级菜单下生成子菜单“perl编译以及运行”，可直接在UltraEdit里运行perl程序

 

3、在UltraEdit中新建文件stdin.pl,代码如下：

     #!/user/perl/bin/perl  
    $line=&lt;STDIN&gt;;  
    if($line eq "\\n"){  
        print "That was just a blank line! \\n";  
     }else{  
        print "That line of input was: $line";  
     }

 

  单击：高级----&gt;perl编译以及运行，会弹出dos界面，

  输入hello world，代码运行结果：

  That line of input was: hello world