fatherlyons has asked for the wisdom of the Perl Monks concerning the following question:
$CL is a 6 digit number which is passed to the function as an argument. The problem is, when I run this through Apache it doesn't return the $Components string. However, if I explicitly set the $CL to a number (i.e $CL = 565431;) it works fine!! The number is definitely being passed in correctly as the script runs fine as a standalone program and it isn't down to Perforce access rights either. Any ideas cos I'm all out!!! Cheers, DP$command = "print"; $CL = shift; push @options, "-q", "$filename...\@$CL"; @info = $p4->Run( $command, @options ); @options = (); $errors = $p4->ErrorCount(); die "Errors occured when executing p4 print -q $filename...\@$CL\n" if + ($errors > 0); foreach my $element (@info) { $Components = $Components.$element; } @info = (); return $Components;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl / Apache / P4 Problem
by Tanktalus (Canon) on Jul 06, 2005 at 12:55 UTC | |
|
Re: Perl / Apache / P4 Problem
by etcshadow (Priest) on Jul 06, 2005 at 13:44 UTC |