Thread Versuche eine mail zu löschen...: GMail::Checker (4 answers)
Opened by FlorianL at 2007-07-24 23:08

renee
 2007-07-25 12:32
#37615 #37615
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
[quote=FlorianL,25.07.2007, 10:13]ich shifte doch von @mails oder nicht?

Code: (dl )
1
2
my $host;
if ($host eq '') { shift } else { print("--\n"); }
[/quote]
Nö, dann musst Du das angeben: shift @mails

Aus <!--pod_f1--><a href="//perldoc.perl.org/functions/shift.html" target="_blank"><img alt="perldoc " src="/iB_html/non-cgi/Skin/SKIN-3/images/perldoc.gif" border="0"> <!--pod_f2-->perldoc -f shift<!--pod_f3--></a><!--pod_f4-->:
Quote
shift ARRAY
shift Shifts the first value of the array off and returns it,
shortening the array by 1 and moving everything down. If there
are no elements in the array, returns the undefined value. If
ARRAY is omitted, shifts the @_ array within the lexical scope
of subroutines and formats, and the @ARGV array at file scopes

or within the lexical scopes established by the "eval ''",
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Versuche eine mail zu löschen...: GMail::Checker