On Tue, Aug 26, 2003 at 10:02:27AM -0500, Shawn wrote:
> On Tue, 26 Aug 2003 09:57:20 -0500
> "John J. Trammell" <trammell+tclug at el-swifto.com> wrote:
> 
> > 
> > Untested one-liners:
> > 
> >  perl -le 'print qq[<a href="$_">$_</a><br>] for @ARGV' *.jpg >
> >  foo.html
> > 
> >  perl -le 'print qq[<p><img src="$_">] for @ARGV' *.jpg > bar.html
> > 
> 
> Thanks John.  I gotta learn perl....   No idea what any of that means.  =P
> 
> qq = echo equivalent to input to the file?
> 
> @ ARGV = the argument of the script in brackets?
> 

Perl r0x0rs!  qq[xyz] is the same as "xyz", but lets you avoid
backslashing internal quotes, e.g. qq["quoted"] eq "\"quoted\"".
Just looks cleaner to me.  "qq" is a mnemonic for "double quote".

@ARGV contains the command-line arguments to the script, similar
to $1, $2, etc. in sh.

-- 
trammell at el-swifto.com  9EC7 BC6D E688 A184 9F58  FD4C 2C12 CC14 8ABA 36F5
Twin Cities Linux Users Group (TCLUG)      Minneapolis/St. Paul, Minnesota

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list