作者g9678007 (HKE)
看板Perl
标题[问题] 如何在mac底下写perl?
时间Sun Oct 18 22:31:18 2009
hello,各位版上的先进大家好:
小弟最近想要开始学习perl,那本人现在系统是10.6,爬了蛮多文都指原本系统
下就有可以用了。不知哪位大大有相关的使用经验,可以分享,因为小弟一直摸
不着头绪。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.195.1.177
1F:推 abliou:anysomething对於mac和perl有些心得,也许可以和他讨论 10/19 00:44
2F:推 yanganto:就写纯文字的档案,副档名 .pl ,然後在终端机下面打 10/19 00:57
3F:→ yanganto:perl filename.pl 这样就会执行了很方便的... 10/19 00:57
4F:→ kornelius:个人是比较 prefer 使用 macports 的 perl5.10.1 10/19 11:23
5F:推 hasheesh:开terminal 用vi写吧 就像在linux下使用一样罗 10/19 13:11
6F:→ kornelius:建议使用编辑器 vim .... (可以由 macports 安装) 10/19 13:27
7F:→ g9678007:好奇怪喔 都会跑出 Can't open perl script 10/19 21:13
8F:→ g9678007:: No such file or directory 10/19 21:14
9F:→ g9678007:perl -e 'print "hello world!\n"' 这就可以 10/19 21:14
10F:→ g9678007:是第一行#!/usr/bin/perl 位置的问题嘛? 10/19 21:15
11F:→ g9678007:我弄好的.pl档释放在桌面 怎麽这样子 10/19 21:16
12F:→ g9678007:解决谢谢各位 10/19 22:35
13F:推 kornelius:did you install macports ? 10/19 22:51