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

Re: Re: Why is my array getting changed?

by Rhose (Priest)
on Aug 26, 2002 at 14:49 UTC ( #192892=note: print w/ replies, xml ) Need Help??


in reply to Re: Why is my array getting changed?
in thread Why is my array getting changed?

Yep, what jmcnamara said! *Smiles*

Add the following line to your code and run it...

#!/usr/bin/perl -w use strict; my @msgtime = (1029435628); my $i; for ( $i = 0; $i <= 2; $i++ ) { foreach my $timealert (@msgtime) { print '[',$timealert,'][',@msgtime,']',"\n"; # <--- Add me! $timealert = ((time - $timealert) / 60); print "$timealert\n"; } }


Comment on Re: Re: Why is my array getting changed?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2015-07-30 18:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls