Re: CGI programming

2009-11-30 Thread lan messerschmidt
On Mon, Nov 30, 2009 at 5:39 PM, Anant Gupta wrote: > I am not allowed to write to /var/www/cgi-bin/ > > I am not the root user of my machine > Is their any way i can try out my perl cgi programs on this machine( Red Hat > Linux) > That's decided by the http server's config. Some of httpd.conf ma

Re: escape quotes in GREP

2009-11-29 Thread lan messerschmidt
On Mon, Nov 30, 2009 at 3:46 PM, Uri Guttman wrote: > > what is [^()]* looking for? why couldn't () be inside the div tags? > Well, it's the OP's idea, not mime and YOURS. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://

Re: escape quotes in GREP

2009-11-29 Thread lan messerschmidt
On Mon, Nov 30, 2009 at 12:40 PM, Julia Gallardo Lomeli wrote: > Hi, > > Lets say I want grep to find all class="photo">whateverElementGoesInsideTheseDivTags in index.html > > I am using the code below but it seems that it's not working > > > grep -o "[^()]*"  index.html > Perl's grep can do: #

Re: for loop

2009-11-27 Thread lan messerschmidt
On Fri, Nov 27, 2009 at 6:32 PM, PigInACage wrote: > Hello all. > > I've got a file CSV with 3 column > name,surname,group > > if one of the column has got a space like > Davide,Super Dooper,Group > I cannot use it in a for loop > > for i in `cat list.csv` ; do echo $i ; done > the result is > Dav

Re: A simple question about the Perl line

2009-11-27 Thread lan messerschmidt
On Fri, Nov 27, 2009 at 8:34 PM, Majian wrote: > Could  you explain  it ? > > What is the meaning of the $.? And Why use  the "%2"  operator? > $. means the line number, see perldoc perlvar and look for $. %2 means the modulus operator. # perl -le 'print $_%2 for 0..3' 0 1 0 1 HTH. -- To unsub

Re: A simple question about the Perl line

2009-11-27 Thread lan messerschmidt
On Fri, Nov 27, 2009 at 8:03 PM, Majian wrote: > Hi ,all: > > I have a problem about this : > > cat test: > 12 > 23 > 34 > 45 > 56 > 67 > ... > > I want to become like this : > 1223 > 3445 > 5667 > ... > # perl -e ' $m=<) { chomp if $.%2; print; }' 1223 3445 5667 -- To unsubscribe, e-m