User Profile

Collapse

Profile Sidebar

Collapse
Paulchen
Paulchen
Last Activity: Oct 25 '07, 10:41 AM
Joined: Oct 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thank you, that helped.

    In php I can output the elements of an array with the print_r function. Is there an equivalent in perl to do this? I'd like to output the elements of $pool{$key}, but if I use print I only get something like that:

    @pool{$key} = ARRAY(0x822dae4 )

    What part of the @temp arry is
    Code:
    $pool{$key} = [ @temp ];
    assigning to $pool{$key}? I wonder what an array in these braces [...
    See more | Go to post

    Leave a comment:


  • Perl noob tries to translate a scipt to PHP - need some help

    Hello, I have found a perl script and need to "translate" this to PHP. I try to do it step by step and the first part of it is this function (the whole script is found at http://nonsense.source forge.net/):

    Code:
    ### Load and parse a datafile, slurping the contents into the %pool hash
    sub LoadDataFile { 
       my $file = shift;
       $file = SafeFile( $file ) if $cgi_mode;
       open IN, $file or die "Error
    ...
    See more | Go to post
No activity results to display
Show More
Working...