| nahasa | i try to run it from a cgi directory and it tries to open it |
| action | Randal waits for a good paste |
| Randal | waits for a good paste |
| snow_ru | he asked me to change the homedir everywhere instead of just puting a variable and then use it |
| Randal | Oh - sounds like a CGI problem then not a Perl problem what web server? |
| nahasa | it works with other programs |
| snow_ru | the HOMEDIR exist in so many places, f00li5h |
| f00li5h | nahasa: use a template system instead, see also: Template::Toolkit, HTML::Template or Text::Template |
| gnube | f00li5h, Ah, taint mode. I should be using that. |
| nahasa | template for what |
| f00li5h | snow_ru: use search and replace |
| action | Randal hasn't seen the code yet |
| Randal | hasn't seen the code yet |
| f00li5h | nahasa: generating your "menu" |
| snow_ru | ok |
| f00li5h | Randal: it's really not that exciting |
| nahasa | is there a problem with the code? |
| f00li5h | infact, it's scary nahasa: yes, there is, or you wouldn't ask |
| perlnewbie | does anyone know of a way in perl to take a file that is already input to the program and convert it into hex format? Basically I have a RAW audio file with a .raw extension that is sitting in a buffer and I need to convert it to hex so I can output the file to play the audio in hex format. |
| snow_ru | s/HOMEDIRFIX/ '/home/username' ??? |
| nahasa | omg i forgot the print content type that is why |
| snow_ru | sorry ..just started to learn perl ... |
| mauke | perlnewbie: what do you mean by "hex format"? |
| f00li5h | snow_ru: yeah, sure |
| Randal | ok |
| f00li5h | snow_ru: i actually added a bit of code to the top that did that, and put what's there in a __DATA__ but that's a story for another day |
| snow_ru | f00li5h, ... before that, should I type perl ? |
| Randal | eval: unpack "H*", "\x11\x22\x33\x44" |
| buubot | Randal: 11223344 |
| Randal | like that? |
| f00li5h | snow_ru: what? |
| Randal | for perlnewbie |
| perlnewbie | convert the .raw file that is sitting in a $RAWaudio function into hex |
| Randal | unpack "H*", $pile_of_bits |
| snow_ru | Where I should type this """""" s/HOMEDIRFIX/ '/home/username' ??? perl -infile s/HOMEDIRFIX ... ? |