Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Finding names in files

by gzayzay (Sexton)
on Mar 29, 2006 at 18:23 UTC ( [id://540027]=note: print w/replies, xml ) Need Help??


in reply to Re: Finding names in files
in thread Finding names in files

Thanks duff,

However, I do not understand the following part of your code.

for my $file (@files)

Why are You using $file(@files), could you kindly explain that to me.

Replies are listed 'Best First'.
Re^3: Finding names in files
by SamCG (Hermit) on Mar 29, 2006 at 18:44 UTC


    That syntax puts the default variable (i.e., the array element that he's working on) into $file so he can use that in his loop instead of $_ or $file=$_;

    No muss, no fuss

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-26 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found