]> git.vpit.fr Git - perl/modules/CPANPLUS-Dist-Gentoo.git/blobdiff - lib/CPANPLUS/Dist/Gentoo/Atom.pm
C::D::G::Atom->and ought to handle only one atom
[perl/modules/CPANPLUS-Dist-Gentoo.git] / lib / CPANPLUS / Dist / Gentoo / Atom.pm
index e285b0ce32a28b8220f4a4a36739e9bcbe1461c9..5cd01e3b3aa3f376a17f244079a1d3b8274ee46f 100644 (file)
@@ -215,6 +215,8 @@ sub and {
  shift unless length ref $_[0];
 
  my $a1 = shift;
+ return $a1 unless @_;
+
  my $a2 = shift;
  $a2 = $a2->and(@_) if @_;