| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8
Comments:
<0> is 'blah' a __data__ type area i can place anywhere? <0> or must it immediately follow my $help .... line <1> jieryn, it's the same as the print<<blah thing <2> jieryn: ok, you need to learn about heredocs <0> i'm already using heredoc <2> <<blab ... blah is a string literal <0> ok, here is the line i'm using: print substr(<<END_HELP,0,-1); \n ...mytext.... \n END_HELP where the \n's are real <2> holy <3> what the heck? what are you trying to do? <0> what i really want is to place the internal documentation away from all the subroutine areas <2> jieryn: heh, place it in another subroutine <0> it already is. <2> not quite <3> sub usage { return <<"EOM;"; .... EOM; } <3> then you can print usage() and stuff <2> yeah, that's what I meant
<0> ok <4> Hi mauke :) <0> is there a nice way in perl 5.8.x to do a "switch" logic operation on strings? <4> huh? <3> use Switch ? <2> yes, it's called a hash <1> mauke++ <4> mauke++ #everybody's doing it! <1> (screw switches) <4> ?_? <5> everybody's doing it doing it doing it / picking their nose and chewing it chewing it chewing it <4> ........... <6> Daveman: mind if I pick your brain one more time about EE stuff? <4> yeah yeah :p <4> work-- if ++infi; <4> \o/ <7> all : i edited sendmail.pm my ISP smtp server need to user and p*** how can i set it there? <6> aww <4> :) <6> Daveman: so, I have a gas sensor that varies its output voltage based upon the concentration of X gas in normal air. would it be possible to use a standard analog comparator to estimate the concentration, or will I need a full ADC? <8> can anyone a windows webcam package? ideally with audio etc. <8> i got a machine in the pittsburgh office <6> doug: I'd flay you for being off topic in #perl, but I'm doing the same ;) <8> and i wanna ut my face o ig;cuz everyone ca nsee it. <7> hum <8> whoa <8> guess i'm not typing well <8> #perl's off topic appx 99% of the time. <6> mostly. <9> I wonder... Does Module::Build have anything interesting to say on the subject of executable binaries, FastCGIs, or config files? <7> no help with Mail::Sendmail ? <3> LinuxMafia, what's the problem? <7> ofer0, it does not work for me <7> ofer0, i have my ISP smtp server <3> goody <7> ofer0, login and p***word <3> that's stupid <3> why would your ISP want you to send your login and p***word in plain text every time? <3> when they can just block access to their cllients only? <7> ofer0, ok i did put , my isp smtp server <7> in Sendmail.pm <1> Because clients want to be able to send email even when they're not dialling into the ISP <3> Brend, so when you're outta the network, use the login+p***. no need to create a security risk at all times <3> LinuxMafia, you shouldn't change sendmail.pm. RTFM <1> ofer0: *shrug* <3> LinuxMafia, and this time I won't read it for you. config your mail server via Mail::Sendmail <1> ofer0, a lot of ISPs these days are just reselling bandwidth from telecomms companies. They may not easily be able to rig that up <7> ofer0, i know you can change it in script <10> LinuxMafia: Use Mail::Sender: It _rocks_. <11> does anybody have an example of how to take a HTML POST form request that was sent to a cgi and forward it to another script? <7> ofer0, i dont have mail server <7> damog, thanks i look at it right now <3> LinuxMafia, changing the module won't solve your problem. your problem isn't the module, it's the approach <3> ajb, why would you want to do that? <11> I have a Soupermail cgi provided to me, but I don't have access to it so I cannot change it. I want to add in some functionality that I have working in a different script, but I need a way to p*** the info on <12> Hi, I working with large files: can I expect arithmetic to work normally in the 2^34 byte range? I notice that (1<<17)<<17 returns zero for example <12> I just worried about perl using floating point internally and screwing up the offsets... <2> $ perl -wle 'print for (1 << 17) << 17' <2> 17179869184 <9> <guess> it might depend on the size of "unsigned long" on the underlying platform
<9> So if you're on 32bit machines, it won't work. </guess> <12> $ perl -we 'print 1<<17 << 17,"\n"' <12> 0 <2> $ perl -V:use64bitint <2> use64bitint='define'; <12> Ok, but if I use 2**34 +1, it doesn't appear to lose any precision there <9> $ perl -we 'print for (1<<17) << 17' <9> 0 <9> $ perl -V:use64bitint <9> use64bitint='undef'; <9> ****stobeme :/ <12> yeah, not defined here eithe <12> I suppose even when using float it should be able to hadle integers upto 50bits without screwing up <13> how do i make the first letter of everyword in a string a capital? <12> lcfirst? <12> ah no, that's just the first letter, use a regex <13> regex? <13> crap... <11> or, you could pray <9> eval: join( " ", map { lcfirst } split( m/(\w+), "here are all of my words" ) <14> LeoNerd: Error: Search pattern not terminated at eval line 1. <11> which would be e***ier then regex <9> eval: join( " ", map { lcfirst } split( m/(\w+)/, "here are all of my words" ) <14> LeoNerd: Error: syntax error at eval line 2, at EOF <9> eval: join( " ", map { lcfirst } split( m/(\w+)/, "here are all of my words" ) ) <14> LeoNerd: here are all of my words <9> eval: join( " ", map { $_ = lcfirst } split( m/(\w+)/, "here are all of my words" ) ) <14> LeoNerd: here are all of my words <13> praying would be alot easier, regex scares me <13> lcfirst... does that make lowercase? <11> is not good at perl <9> Errr... <9> :) <9> eval: join( "", map { ucfirst } split( m/(\w+)/, "here are all of my words" ) ) <14> LeoNerd: Here Are All Of My Words <9> Marvelous :) <13> ok :P <9> join( map split .. ) is a useful one to remember <13> i cant seem to comphrend the map function <13> i look at it and it makes no sense... and the perldoc didn't help me either <9> eval: [ map { $_ * 5 } ( 1 .. 5 ) ] <14> LeoNerd: [5,10,15,20,25] <13> why doesn't anyone make a freakin laymen terms manula <2> eval: $_ = "HERE BE CAMELS"; s/(\w+)/\u\L$1/g; $_ <12> Maybe something like: s/\b([a-z])/uc $1/g ?? <9> ^-- does that help? <14> mauke: Here Be Camels <13> manual <2> josh_: what part do you not understand? <9> map takes a code block and a list. For each item in the list, it runs the code block on it, concateniates all the answers, and returns it <12> josh: eh? map takes a list, runs the ap of each element and returns the result <9> map $code @list == { my @ret; foreach( @list ) { push @ret, $code->( $_ ); }; return @ret } <2> eww <2> map f [x1, x2, x3, ...] == [f(x1), f(x2), f(x3), ...] -- pseudocode <9> Remembering about perl's concatenation-of-list-results of course <9> Specifically in case of returning empty lists from the code block <2> he's gone :( <9> Hrm... A Module::Build question here... Would there be a way I could somehow get it to put a .fcgi script in $prefix/libexec/ for me? <4> :\ <4> map, mauke's best friend. <4> :) <1> Map is everyone's best friend <1> Map is the basis of programming! <9> GumbyBRAIN: map? <15> [ map { $_ * 5 } ( 1 .. 5. <9> *blink* <2> eval: sub{&{$_[0]}}->(sub{$_[1]?$_[0]($_[0],$_[1]-1)*$_[1]:1},$_) for 5 <14> mauke: <2> :( <4> :o <2> eval: print sub{&{$_[0]}}->(sub{$_[1]?$_[0]($_[0],$_[1]-1)*$_[1]:1},$_) for 5 <4> gumbybrain: map for life <14> mauke: 120
Return to
#perl or Go to some related
logs:
unable to logon because of an account restriction
perl coherse #kde opensuse mirrirs invalid operation java-package +ubuntu fedora udf-8 #qemu xubuntu configured improperly #web linux-k8 ubuntu
|
|