Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Can't find any documentation on < a b c > syntax for lists

by ikegami (Patriarch)
on Feb 14, 2023 at 15:38 UTC ( [id://11150363]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Can't find any documentation on < a b c > syntax for lists
in thread Can't find any documentation on < a b c > syntax for lists

From this StackOverflow answer,

  • <> means readline(ARGV)
  • <IDENTIFIER> means readline(IDENTIFIER)
  • <$IDENTIFIER> means readline($IDENTIFIER)
  • <...> (anything else) means glob(qq<...>)

Replies are listed 'Best First'.
Re^5: Can't find any documentation on < a b c > syntax for lists
by Anonymous Monk on Feb 14, 2023 at 16:03 UTC
      <...> (anything else) means glob(qq<...>)
    Anything? Except this:
    perl -MO=Deparse,-p -e 'print "$_\n" for <<>>'
    print("$_\n") foreach (<<>>);

    Perl waits for input:

    echo fubar | perl -e 'print "$_\n" for <<>>'
    fubar

      Different operator. I also didn't cover <<EOF eventually followed by >, or $x<123 eventually followed by a >, etc.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11150363]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found