Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Text::VimColor in a CGI - possible?

by quester (Vicar)
on Mar 20, 2007 at 06:10 UTC ( #605645=note: print w/replies, xml ) Need Help??


in reply to Text::VimColor in a CGI - possible?

This must be sensitive to the environment, because I don't get any errors running your example. This is on Knoppix 5.0 with Linux kernel 2.6.17, perl 5.8.8, vim 6.4.7, and Text::VimColor 0.11. Update: and thttpd 2.23beta1, rather than Apache. One oddity in your example:
my $perl=<<EOP;
really should be
my $perl=<<'EOP';
In your example, that only changes the \n in the print statement into a literal line feed. In a bigger test case variable substitution would remove all the variable names in the quoted script.
  • Comment on Re: Text::VimColor in a CGI - possible?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://605645]
help
Chatterbox?
[shmem]: Re^5: Understanding endianness of a number - nice! "zigamorph" will be the host name of the VM I'll set up to debug Microfocus COBOL/perl stuff :-D
[prospect]: Hi, to avoid cluthering the Seekers of Perl Wisdom page. I wanted to print out the values on a new line each. So I though I put a . "\n" behind "print foreach func()" but something interesting happens and it I just get "5" as output :p
[prospect]: print foreach func(). "\n"; sub func { return ( 1, 2, 3, 4, 5 ); }
[prospect]: if I remove the ".\n" I get "12345" as output

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2017-07-24 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (350 votes). Check out past polls.