#perl - Wed 28 Mar 2007 between 12:21 and 12:25



nahasai try to run it from a cgi directory and it tries to open it
actionRandal waits for a good paste
Randalwaits for a good paste
snow_ruhe asked me to change the homedir everywhere
instead of just puting a variable and then use it
RandalOh - sounds like a CGI problem then
not a Perl problem
what web server?
nahasait works with other programs
snow_ruthe HOMEDIR exist in so many places, f00li5h
f00li5hnahasa: use a template system instead, see also: Template::Toolkit, HTML::Template or Text::Template
gnubef00li5h, Ah, taint mode. I should be using that.
nahasatemplate for what
f00li5hsnow_ru: use search and replace
actionRandal hasn't seen the code yet
Randalhasn't seen the code yet
f00li5hnahasa: generating your "menu"
snow_ruok
f00li5hRandal: it's really not that exciting
nahasais there a problem with the code?
f00li5hinfact, it's scary
nahasa: yes, there is, or you wouldn't ask
perlnewbiedoes 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_rus/HOMEDIRFIX/ '/home/username' ???
nahasaomg i forgot the print content type
that is why
snow_rusorry ..just started to learn perl ...
maukeperlnewbie: what do you mean by "hex format"?
f00li5hsnow_ru: yeah, sure
Randalok
f00li5hsnow_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_ruf00li5h, ... before that, should I type perl ?
Randaleval: unpack "H*", "\x11\x22\x33\x44"
buubotRandal: 11223344
Randallike that?
f00li5hsnow_ru: what?
Randalfor perlnewbie
perlnewbieconvert the .raw file that is sitting in a $RAWaudio function into hex
Randalunpack "H*", $pile_of_bits
snow_ruWhere I should type this """""" s/HOMEDIRFIX/ '/home/username' ???
perl -infile s/HOMEDIRFIX ... ?

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 116 123 

IrcArchive