Re: stuck on finding variables

2002-09-06 Thread david
Sudarshan Raghavan wrote: > On 5 Sep 2002, Chuck Belcher wrote: > > @scalars_used{/(\$\w+)/g} = (); > print Dumper(\%scalars_used); > } > print Dumper(\%scalars_used); this is not going to work well. consider: #!/usr/bin/perl -w use strict; =item whatever $w $x $y $z =cut #--

Re: stuck on finding variables

2002-09-06 Thread John W. Krahn
Chuck Belcher wrote: > > I have just started using perl and I have been asked to write a script > that will open a perl script, count all of the variables identified by > $... and print to the screen the number of unique variables and display > a list of variables used. Can anyone tell me where

Re: stuck on finding variables

2002-09-05 Thread Sudarshan Raghavan
On 5 Sep 2002, Chuck Belcher wrote: > I have just started using perl and I have been asked to write a script > that will open a perl script, count all of the variables identified by > $... and print to the screen the number of unique variables and display > a list of variables used. Can anyone t