>Make sure you add:
>to the above perl, or any perl code for that matter, like so:
>my $var1 = shift @ARGV;
>my $var2 = shift @ARGV;
Ok. Thanks, for you input people :)
Also, why have you used the 'shift' keyword for?
You're mixing up bash syntax with perl.
If you're using bash, you can do this:
#Note, no leading '$'
If you're using perl, it uses a different syntax for retrieving cmd line
$var1 = $ARGV
$var2 = $ARGV
Edward Q. Bridges
<quote who="Hughes, Trystan">
>>Here's what I use:
>>`svnadmin dump $REPOS --revision $REV --incremental | gzip > $FILENAME`
>>This gets called from the post-commit hook script like so:
>>/usr/lib/subversion/hook-scripts/incremental-backup.sh "$REPOS" "$REV"
> Ok, I am having some problems with this.
> I have created a simple perl (.pl) file that is to take the command-line
> parameters and print them to the screen. Now my perl file I have created
> is as follows...
> #! perl (using Windows)
> print $var1."\n".$var2;
> And the command-line call that calls this script is as follows...
>>perl c:\test_incremental.pl "param1" "param2"
> Now it compiles ok, but all I get is blank output to the command prompt
> when I run the script, and not
> Hope someone can see where I am going wrong or missing something out.
The views expressed in this e-mail are not necessarily the views of AssetCo Group Limited,
its directors, officers or employees make no representation or accept any
liability for its accuracy or completeness unless expressly stated to the contrary.
This e-mail, and any attachments are strictly confidential and intended for the addressee(s) only.
The content may also contain legal, professional or other privileged information. Unless expressly
stated to the contrary, no contracts may be concluded on behalf of AssetCo Group Limited by means of
e-mail communication. You may report the matter by calling us on +44 (0)118 906 8000.
Please ensure you have adequate virus protection before you open or detach any documents from this
transmission. AssetCo Group Limited does not accept any liability for viruses. AssetCo Group Limited
is registered in England: Company number: 4450947
Registered Office: Davidson House, Forbury Square, Reading, Berkshire RG1 3GA
Received on Tue May 24 11:10:13 2005