Help for this page

Select Code to Download


  1. or download this
    open(FFINFO,"$folderfolder_file") or die "Can't open $folderfolder_fil
    +e: $!\n";
    # This reads in every line from FFINFO
    ...
    # but the handle is already at EOF,
    # so it gets nothing.
    while ( my $line = <FFINFO> ) {
    
  2. or download this
    open(FFINFO,"$folderfolder_file") or die "Can't open $folderfolder_fil
    +e: $!\n";
    
    ...
    
    while ( my $line = <FFINFO> ) {
        push @subfolders, $line;
    
  3. or download this
        return @parents ? [ map {
                                    map { "$_/$folderid" } @{ build_path( 
    +$_ ) }
                                } @parents ]
                        : [ $folderid ];
    
  4. or download this
    ( return @parents ) ? [ X ] : [ Y ];
    
  5. or download this
    return ( @parents ? [ X ] : [ Y ] );
    
  6. or download this
    perl -MO=Deparse,-p input-file.pl
    
  7. or download this
    return((@parents ? [map({map({"$_/$folderid";} @{build_path($_);});} @
    +parents)] : [$folderid]));