Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Unexpected deletion of data using > operator

by davidrw (Prior)
on Dec 07, 2008 at 17:19 UTC ( [id://728747]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @customerarray = ( ... );
    
    ...
    open FH, '>', "$cuslist.tmp" or die "Can't open $cuslist.tmp: $!";
    print FH "$_\n" for @keep;
    close FH;
    
  2. or download this
    open FH, '>', "$cuslist.tmp" or die "Can't open $cuslist.tmp: $!";
    print FH "$_\n" for grep { time - split '::', $_)[2] <= 15*24*60*60 } 
    +@customerarray;
    close FH;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-18 22:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found