Thread (Message) | Date | Author |
Score |
Board |
Rückgabewert in Variable speichern???
(#667) |
2004-01-19 20:27 |
format_c
|
 |
Perl/CGI |
Wenn du allerdings deinen Code ausschließlich in Subroutinen steckst sieht das eingebundene script etwa so aus.
[code]
use strict;
sub schagmichtot ($) {return 1 if $_[0] eq 'ok';}
1;# Damit unser… |
|
Frage: Perl und GDBM unter Linux
(#593) |
2003-12-25 20:42 |
Tobi
|
 |
Perl/CGI |
… in Zeile 15
[code]
[Thu Dec 25 19:34:53 2003] [error] Undefined subroutine &Apache::ROOTtobias::lounge::cgi_2dbin::pc_anmelden_2epl::ReadParse called at… |
|
Ideen zur LDAP user authentication
(#153585) |
2011-11-15 14:20 |
arieger
|
 |
Allgemeines zu Perl |
my $userdn = testGuid ("$myGUID", "$password");
wird über eine andere subroutine gefüllt. das klappt auch soweit
habt ihr eine Idee
mittlerweile konnte ich selber lösen. |
|
XML-Parser beenden?
(#112261) |
2008-07-17 18:27 |
guest Gast
|
 |
Fragen zu Perl-Modulen |
…
$pParser -> parsefile($Files[$j]);
}
}
}[/code]
Subroutine:
[code]
sub anfang{
my($p, $starttag, %attr) = @_;
# beginnt eine neue Datei?
if($starttag eq "testsuite") {
#… |
|
PAR kompilierte kopirte file geht nicht mehr
(#47517) |
2005-11-09 22:22 |
mandawar
|
 |
Installation und Konfiguration |
… Goto undefined subroutine &DynaLoader::bootstrap_inherit at /loader/0x9a0b28/XSL
oader.pm line 101. |
|
private/public subs in modules
(#117172) |
2008-12-13 17:17 |
LanX-
|
 |
Allgemeines zu Perl |
# First, store an anonymous subroutine in a file-scoped lexical:
# declare private method
my $secret_door = sub {
my $self = shift;
... |
|
Objektorientierung vs. Prozedural
(#77214) |
2007-06-03 21:23 |
bloonix
|
 |
Allgemeines zu Perl |
ein framework wächst ja von
natur aus, und ich habe schon so oft subroutinen umgestellt von
der übergabe a la "[tt]func($foo, $bar, \@baz)[/tt] auf
"[tt]func({foo => $foo, bar => $bar, baz =>… |
|
Variablen in reg. Ausdrücken (s#$from#$to#g)
(#68174) |
2006-07-17 22:29 |
renee
|
 |
Allgemeines zu Perl |
… of the current Perl program, so that any
variable settings or subroutine and format definitions remain
afterwards. Note that the value is parsed every time the "eval"
executes. |
|
XS Nachhilfe ...
(#59134) |
2005-10-22 16:02 |
J-jayz-Z
|
 |
Allgemeines zu Perl |
… ':all';
&curse::taste();
[/code]
bekomme ich nur:
Undefined subroutine &curse::taste called at test.pl line 7.
Kann mir jemand sagen, wie ich die *.h Datei in die *.xs Datei umwandeln kann … |
|
substr_count in perl
(#84312) |
2004-07-15 19:48 |
betterworld
|
 |
Allgemeines zu Perl |
… der Tat um eine Liste und nicht um den Komma-Operator, denn eine Subroutine gibt immer eine Liste zurueck.
So, nun haben wir das wohl genug durchgekaut. |
|
welche module könnt ihr mir empfehlen: pm-webbaukasten aufrüsten
(#28541) |
2006-05-19 12:08 |
pq
|
 |
Webframeworks, Sonstige Fragen zur Webprogrammierung mit Perl |
… [i]wie groß ist mein hash?[/i]
[cpan=Benchmark]Benchmark[/cpan] - [i]wie langsam ist meine subroutine?[/i]
@strat: danke für die häufige positive erwähnung von HTC =)\n\n
<!--EDIT|pq|1148027134--> |
|
grep <br> in text
(#128393) |
2009-11-21 15:42 |
pq
|
 |
Perl/CGI |
wow. wo hast du die subroutine splitVars her? das ist noch steinzeitlicher als die steinzeitlichste CGI-verarbeitung, die ich bisher gesehen habe. |
|
Programmierparadigmen in Perl
(#171610) |
2013-10-28 16:40 |
murphy
|
 |
Allgemeines zu Perl |
… als Werte wie jedes andere Datenobjekt, es gibt anonyme Subroutinen, die lexikalische Closures bilden, und es gibt grundlegende Funktionen höherer Ordnung wie [c]map[/c], [c]grep[/c] in der… |
|
WebSocket Server tut nicht
(#169362) |
2013-08-05 12:58 |
murphy
|
 |
Allgemeines zu Perl |
…
Das ist nicht korrekt: Die Schleife steckt in einer Subroutine, die erst später innerhalb von [c]->start[/c] eventuell irgendwann mal aufgerufen wird. |
|
Neu in der Perl Welt und ein paar Fragen..
(#169060) |
2013-07-23 19:40 |
Ratte
|
 |
Allgemeines zu Perl |
ich weiß nicht was verlangt wird:
Write a subroutine, called &total, which returns the total of a list of numbers. Hint: the subroutine should not perform any I/O; it should simply process its… |
|
Neu in der Perl Welt und ein paar Fragen..
(#169060) |
2013-07-23 19:40 |
Ratte
|
 |
Allgemeines zu Perl |
ich weiß nicht was verlangt wird:
Write a subroutine, called &total, which returns the total of a list of numbers. Hint: the subroutine should not perform any I/O; it should simply process its… |
|
Neu in der Perl Welt und ein paar Fragen..
(#169060) |
2013-07-23 19:40 |
Ratte
|
 |
Allgemeines zu Perl |
ich weiß nicht was verlangt wird:
Write a subroutine, called &total, which returns the total of a list of numbers. Hint: the subroutine should not perform any I/O; it should simply process its… |
|
wxPerl - SplashScreen
(#168111) |
2013-06-12 13:50 |
JVBSOFT
|
 |
Graphische Oberflächen |
bestimmte Subroutinen aufrufen, die z.B. die Verfügbarkeit des Internets prüfen, Informationen zum System sammeln usw.
2. eine ProgresBar einbinden, die dem Nutzer anzeigt wie weit diese Starttests… |
|
Frage zu ReadKey und while Schleifen
(#167940) |
2013-06-04 10:58 |
Kuerbis
|
 |
Allgemeines zu Perl |
Hallo!
Würde sich etwas ändern, wenn ich für die untere Subroutine zwei [c]while[/c] verwenden würde:
[code=perl]sub local_readline {
# ... |
|
Rechenfehler mit Perl ausgleichen
(#167374) |
2013-04-30 22:19 |
GUIfreund
|
 |
Allgemeines zu Perl |
Für ernsthaftes Arbeiten würde ich mir ein Bündel kleiner Subroutinen für die einzelnen Rechenschritte schreiben. Wenn dann noch die Auflösung von Klammern hinzukäme, wäre dieses Bündel nicht gerade… |