Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/org/perlonjava/core/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public final class Configuration {
* Automatically populated by Gradle/Maven during build.
* DO NOT EDIT MANUALLY - this value is replaced at build time.
*/
public static final String gitCommitId = "b7b7d29d3";
public static final String gitCommitId = "8acc9ffd5";

/**
* Git commit date of the build (ISO format: YYYY-MM-DD).
Expand All @@ -48,7 +48,7 @@ public final class Configuration {
* Parsed by App::perlbrew and other tools via: perl -V | grep "Compiled at"
* DO NOT EDIT MANUALLY - this value is replaced at build time.
*/
public static final String buildTimestamp = "Apr 29 2026 17:16:43";
public static final String buildTimestamp = "Apr 29 2026 17:29:18";

// Prevent instantiation
private Configuration() {
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/org/perlonjava/frontend/parser/OperatorParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,21 @@ static Node parseDiamondOperator(Parser parser, LexerToken token) {
LexerToken operand = parser.tokens.get(parser.tokenIndex);
String tokenText = operand.text;

// <ARGV> is special: it behaves like the diamond operator <>,
// iterating over @ARGV (or STDIN if @ARGV is empty), rather than
// reading from a single named filehandle. Treat it as <> so it
// routes through DiamondIO.
if (operand.type == IDENTIFIER && tokenText.equals("ARGV")
&& parser.tokens.get(parser.tokenIndex + 1).text.equals(">")) {
parser.tokenIndex += 2; // consume ARGV and >
OperatorNode diamond = new OperatorNode(
"<>",
new ListNode(currentTokenIndex),
currentTokenIndex);
diamond.setAnnotation("handleName", "ARGV");
return diamond;
}

// Check if the token looks like a Bareword file handle
if (operand.type == IDENTIFIER) {
Node fileHandle = FileHandle.parseFileHandle(parser);
Expand Down
Loading