RE: search a file



Subject: search a file

Hello, I'm writing a simple perl program. no CGI.
* I need to make the program list all the files that have an extension of
".v" in the current directory. Do anyone know a function that makes that ?!
Best Regards,
Eliyah


One way ...

@a=glob('*.v');
print join("\n",@a), "\n";
.



Relevant Pages

  • Re: Tecnique and/or Modules for Perl and HTML
    ... The trick is I want to do it on the same page ... that the action button resides and pop the output of the perl program ... It's not necessarily a good example of how to use CGI, ...
    (comp.lang.perl.misc)
  • Re: Help
    ... roberie_g@yahoo.com wrote: ... I have a small CGI script that attempts to create a file on the fly. ... The Perl program looks fine. ...
    (comp.lang.perl.misc)
  • Re: How to send output to different frame via cgi?
    ... a second perl program is called and it outputs a first ... set of info to the second frame. ... Perl is not CGI ...
    (comp.lang.perl.misc)
  • ctype locale: Invalid argument
    ... I've been struggling with an error in a perl program I've been working on. ... I'm attempting to convert and enhance the freebsd man page cgi ... panic: kernel trap ...
    (freebsd-stable)
  • sending email thru perl script
    ... a perl program to a future user on my site. ... I've been experimenting and ... $cgi = new CGI; ...
    (comp.lang.perl.misc)