Re: Need explanation of expression

2013-11-18 Thread Angela Barone
> Specifically, http://perldoc.perl.org/perlop.html#Conditional-Operator > > '?:' is otherwise known as the 'ternary conditional operator' -- if > you don't know that bit of esoterica, finding the right documentation > is a lot harder. 8^) Thank you, everyone! It's a lot clearer to me n

Need explanation of expression

2013-11-18 Thread Angela Barone
Hello, Could someone explain the format of the following line and how to read it? $name = $fieldname =~ /\[(.*?)\]/ ? $main::global->{'form'}->{$1} : $out; Also, is there something in the perl man pages about it? Thank you, Angela -- To unsubscribe, e-mail: beginners-unsubs

Running older cgi scripts on nginx

2013-11-07 Thread Angela Barone
Hello, I've set up a new cloud account to get familiar with nginx and I'd like to know if it's possible to run an older cgi perl script, and if so, how would I go about doing that? I think I read somewhere that it could be done with Plack, but I can't find any instructions on how to do

Re: Programming Help Needed

2013-10-04 Thread Angela Barone
I just wanted to give a big "Thank you" to all who responded to my inquiry! This will help a lot in my search. Thanks again, Angela -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Programming Help Needed

2013-10-01 Thread Angela Barone
On Oct 1, 2013, at 2:45 PM, John SJ Anderson wrote: > jobs.perl.org is the definitive place to post Perl jobs. > > good luck in your search. Thank you, John! I mentioned this link and was told that the last time we used it, we got a lot of responses from people who really didn't know th

Programming Help Needed

2013-10-01 Thread Angela Barone
Hello, I don't know if this type of subject is off limits here, so if it is, please let me know where I can post this request. My employer is looking to replace our existing Perl cart with a new, modern version. He has asked me to help in the search for programmers who would b

no warnings inside a loop

2013-04-03 Thread Angela Barone
I'm just curious about this. If you put "no warnings" inside a loop, is it good only for that loop, or will it be in effect until the end of the script? Thanks, Angela A2 Hosting now has Perl 5.10.1 http://www.a2hosting.com/1250.html -- To unsubscribe, e-mail: beginners-unsubscr.

Exposed Email Addresses

2013-03-27 Thread Angela Barone
I just noticed something that's very disconcerting. Our email addresses are being posted online from this mailing list. Does anyone know about this? I was doing a search when I came across this page: http://www.nntp.perl.org/group/perl.beginners/2013/03/msg122680.html As you

Re: Trying to parse a URL string

2013-03-24 Thread Angela Barone
On Mar 24, 2013, at 11:54 AM, David Precious wrote: > URI and URI::QueryParam will do exactly what you need: > > use URI; > use URI::QueryParam; > > my $uri = URI->new($referrer); > my $q = $uri->query_param('q'); Hi David, Thank you so much for this. It works perfectly. I had see

Trying to parse a URL string

2013-03-24 Thread Angela Barone
Hello, I'm trying to do the following, but I'm not having much luck. use strict; use warnings; use 5.010; use CGI qw(param); my %q; my $referrer = 'http://www.bing.com/search?q=stainless+wire+rope&t='; my $q = CGI->new($referrer); say '$q = '. $q->param('q'); # 'q' is

Re: Problem Installing perlbrew [solved]

2013-03-20 Thread Angela Barone
Thank you to everyone who replied off-list. It turns out that version 0.60 had a problem which manifested itself in strange ways. As we were trying to figure out what was going on, version 0.61 was released. The new version seems to have fixed the problem. :) Thanks again f

Re: Problem Installing perlbrew

2013-03-19 Thread Angela Barone
On Mar 19, 2013, at 10:48 AM, Jim Gibson wrote: > Try changing that line to: > source /Users/mbo/perl5/perlbrew/etc/bashrc > > or just go back to what you had before: > source ~/perl5/perlbrew/etc/bashrc I tried that, but it didn't work. It turns out that when I used OS X's Terminal, ev

Problem Installing perlbrew

2013-03-19 Thread Angela Barone
I'm hoping someone can help me. I upgraded perlbrew by re-installing it via the curl method and now I can't use it anymore. I'm getting the error "-bash: perlbrew: command not found". Here's what the installation report showed: ## Installing perlbrew perlbr

Re: Abbreviating ordinals only in the middle of an address

2013-01-29 Thread Angela Barone
On Jan 28, 2013, at 1:07 PM, Jim Gibson wrote: > This is known as a "negative lookahead assertion" and uses the (?!...) > construct: Thanks, everyone. I went with the negative lookahead that Jim mentioned. It works like a charm! Thanks again, Angela

Abbreviating ordinals only in the middle of an address

2013-01-28 Thread Angela Barone
Hello, I'm trying to abbreviate ordinals(?) that occur only in the middle of an address and I'm having a problem. The line below works: $test_data =~ s/(\S) North (\S)/$1 N. $2/i; however, if the address is something like 901 North St., it abbreviates that as well. I'm wanting it to