[sf-perl] perl on a mac

Walt Sanders wsanders at pacificwebdesign.org
Sun Nov 23 13:31:48 PST 2008


Thanks Kevin.  This makes it just a little bit neater.  Now if I could  
somehow get my Coda or TextMate to run the programs like Terminal  
does, I would be 100% operational.  Just can't see how to make these  
clients similarly interpret the perl to produce and open an .html  
file.  If anyone knows how to do that, I'm buying the beers!





On Saturday, at , Kevin Frost wrote:

> Why the semicolon?  You may have thrown an error.
>
> I would do it like this, if for some reason I really didn't want my  
> CGI programs executable:
>
> phrun() {
>    perl "$1" > "$1.$$.html" && open "$1.$$.html"
> }
>
> But that's still frighteningly unsafe for my taste.  Try "phrun -v"  
> for instance. (It won't break anything; just use the Finder to look  
> at the file.)
>
> It's also worth noting that a lot of "standard" CGI programs will  
> output an HTTP header, which may not look so good in your browser.   
> Getting around that is probably just as much work as setting up a  
> local web server.
>
> -- f.
>
> On Nov 22, 2008, at 6:04 PM, Randal L. Schwartz wrote:
>
>>>>>>> "yary" == yary  <not.com at gmail.com> writes:
>>
>> yary> Try this, to save yourself some typing
>> yary> $ phrun() {
>> yary>   perl $1 > temporary.html | open temporary.html
>> yary>  }
>> yary> $ phrun idpass.cgi
>>
>> Why the pipe?  You're not piping anything.  A semicolon would be more
>> appropriate.
>>
>> -- 
>> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503  
>> 777 0095
>> <merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
>> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
>> See http://methodsandmessages.vox.com/ for Smalltalk and Seaside  
>> discussion
>> _______________________________________________
>> SanFrancisco-pm mailing list
>> SanFrancisco-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm



More information about the SanFrancisco-pm mailing list