Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Deletes All Records not just one

by PilotinControl (Scribe)
on Feb 16, 2013 at 13:21 UTC ( #1019037=note: print w/ replies, xml ) Need Help??


in reply to Re: Deletes All Records not just one
in thread Deletes All Records not just one

Thanks for all of the information and the revised code worked it did delete the entries in the file and when i opened the data.txt file here was the input:


delcarEntry=HASH(0x191920c)
delcarEntry=HASH(0x191920c)
delcarEntry=HASH(0x191920c)


Comment on Re^2: Deletes All Records not just one
Re^3: Deletes All Records not just one
by tobyink (Abbot) on Feb 16, 2013 at 13:42 UTC

    Try:

    print $out_file_handle $line_from_file, "\n";

    You're currently printing out the variable $_ which isn't being defined by any of the code you posted (but is being defined somewhere else to point to an object of some kind).

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-08-30 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls