GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Mark Gardner (mjgardner@social.sdf.org)'s status on Friday, 19-Jul-2024 02:47:10 JSTMark GardnerMark Gardner
    • mhd
    • drmorr

    @mhd @drmorr If you want or need to be verbose, you can say the following in #Perl to get the number of elements in an array:

    ```
    scalar @array
    ```

    What that does is force an expression into a scalar context.

    But a lot of the time you *don’t* need to do that. For instance, this will do the right thing:

    ```
    $length = @array;
    ```

    As well as this:

    ```
    say 'There are four lights' if @lights == 4;
    ```

    More on context here: https://perldoc.perl.org/perldata#Context

    In conversationabout 10 months ago from social.sdf.orgpermalink

    Attachments

    1. No result found on File_thumbnail lookup.
      perldata - Perl data types - Perldoc Browser
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.