Re: Running a script

2001-04-17 Thread Tad McClellan
script > first, Right. >and perl is definitely in /usr/bin/. Is it a symlink to a non-existant file? > Have I misunderstood how the #! works? I doubt it. Sounds like a path problem, not a Perl problem. -- Tad McClellan SGML consulting [EMAIL PROTECTED] Perl programming Fort Worth, Texas

Re: Dividing up text files, HELP!!

2001-04-17 Thread Tad McClellan
plit /\s+/, $interesting; Oh. You wanted the endpoints included. So: my $interesting = " $1 ZZZ" if $file =~ /YYYY(.*?)ZZZ/s; then. :-) -- Tad McClellan SGML consulting [EMAIL PROTECTED] Perl programming Fort Worth, Texas

Re: problem with variables

2001-04-17 Thread Tad McClellan
rogram: > > > > $sup1='a'; > > $sup2='b'; > > $sup3='c'; > > > > for ($i=1 ; $i<4 ;$i++){ > > print $sup($i); > > } > > > > but give error, why??? > > -- Tad McClellan SGML consulting [EMAIL PROTECTED] Perl programming Fort Worth, Texas

Re: use strict;

2001-04-16 Thread Tad McClellan
ne could point me to that I'd be very happy. ;-) It makes the difference between "list context" and "scalar context", as others have already pointed out. -- Tad McClellan SGML consulting [EMAIL PROTECTED] Perl programming Fort Worth, Texas