Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: reading values from file

by perlNinny (Beadle)
on Jan 24, 2006 at 21:21 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 05:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found