Re: Surpressing concatenation with null warnings

2003-11-05 Thread Darin McBride
Richard Heintze wrote: > I have just discovered the the following code causes > trouble when I have "use strict" and "use warn"; > > use strict; > use warnings; > > my $k = $q->param('xyz'); > print qq[ \$k = $k ]; > > The problem is that if there is no GET/POST param > called xyz, we are conca

Re: Where is editor that will Indent my perl code?

2003-11-04 Thread Darin McBride
Richard Heintze wrote: > emacs and a number of other editors have the ability, > with a single key stroke to properly indent java code. > > However, since perl has such unusual syntax for > specifying literal character strings (my favorite is > qq[]) emacs chokes when it attempts to indent my per

Re: our vs. use vars

2003-10-29 Thread Darin McBride
Dan Muey wrote: > Howdy group, > > In developing a module and I am torn. > > I want to use the newer our $variable; but to make it work > with pre 5.6 Perl (or whatever version our appeared in) I > have to do the use vars qw($variable); method > > So I was wanting some input about pros and cons

Re: Beginning beginner needing references help

2003-10-21 Thread Darin McBride
Jonathan Mangin wrote: > Jeez, this is a beginner's list? Y'all are defining my ignorance of this > here purrl stuff. I hope someone with patience can help me out. In a > simple login/registration program using 5.6.1... > > #!/usr/bin/perl -wT > use strict; > > [CGI and DBI stuff] IOW, importan

Re: How do I escape shell commands?

2003-10-15 Thread Darin McBride
Dan Anderson wrote: > Is it possible to do something to a string so that it gets escaped for a > shell command (i.e. if I'm executing a command and I have the file name > "foo's bar.jpg" it will be escaped to: "foo\'s\ bar.jpg"? > > Right now the following script is giving me problems because whe

RE: grep argument list too long...how to get around it?

2003-10-11 Thread Darin McBride
Luke Bakken wrote: > Rather than calling > > egrep REGEX really long list of files ... > > they should be calling (ksh here, use "echo" instead of "print" for other > shells): > > print really long list of files | xargs egrep REGEX IMO, they should be using glob and coding the grep themselves