Leser: 1
4 Einträge, 1 Seite |
1
2
3
4
5
6
$ perl -wle'
sub meinefunktion($) { }
meinefunktion()'
Not enough arguments for main::meinefunktion at -e line 5, at end of line
Execution of -e aborted due to compilation errors.
$
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
format_c@linux:/media/sda1/Scripte> perl sub test ($) { my $text = shift; $text ||= ''; print $text,"\n"; } # Test1 test('Hallo'); # Test2 &test(); # Test3 &test('Hallo','Duda'); # Test4 test('Hallo','Duda'); Too many arguments for main::test at - line 13, near "'Duda')" Execution of - aborted due to compilation errors. format_c@linux:/media/sda1/Scripte>
4 Einträge, 1 Seite |