Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Can I open a specific file (eg. '.log') without knowing the actual name of it?

by rchiav (Deacon)
on Apr 07, 2001 at 00:38 UTC ( #70598=note: print w/ replies, xml ) Need Help??


in reply to Can I open a specific file (eg. '.log') without knowing the actual name of it?

What you're looking for is called globbing. Warning - this will get all files with *.log..
use strict; my @loglist; #put all *.log files in the array @loglist = <./*.log>;

Then you know what each file name is..

Hope this helps..
Rich

I wish there was a "10 nodes were added while you were writing this" alert :)

  • Comment on Re: Can I open a specific file (eg. '.log') without knowing the actual name of it?
  • Download Code

Replies are listed 'Best First'.
Re: Re: Can I open a specific file (eg. '.log') without knowing the actual name of it?
by spaz (Pilgrim) on Apr 07, 2001 at 01:56 UTC
    I wish there was a "10 nodes were added while you were writing this" alert :)

    Yeah maybe that should be one of the things you see when you click on the preview button!

    It's too bad vroom is so busy with other stuff

    -- Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://70598]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2016-08-26 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (365 votes). Check out past polls.