Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: reading values from file

by perlNinny (Beadle)
on Jan 24, 2006 at 21:21 UTC ( #525318=note: print w/replies, xml ) Need Help??


in reply to Re: reading values from file
in thread reading values from file

Hmmm...tried your version below:
while (<INFILE>) { # assuming you want what is between the '' after version chomp($old_version) && last if ($old_version) = /ver = '(.*?)'/; } close INFILE;
and it didn't retrieve the string and put it in $old_version...or at least it didn't show it on a subsequent print statement.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2022-08-19 04:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?