P
pgodfrin
Greetings,
I have a perl program that has multiple steps. I'd like to be able to
restart it at any step. This works:
#!/bin/perl
goto $ARGV[0]; # forgive me
S1:
{
print "S1\n";
exit;
}
S2:
{
print "S2\n";
exit;
}
However, I was wondering if there is any programmatic access to the
name of the block. That way I could print the name of the block
instead of hard-coding an arbitrary value (print "S1\n")
pg
I have a perl program that has multiple steps. I'd like to be able to
restart it at any step. This works:
#!/bin/perl
goto $ARGV[0]; # forgive me
S1:
{
print "S1\n";
exit;
}
S2:
{
print "S2\n";
exit;
}
However, I was wondering if there is any programmatic access to the
name of the block. That way I could print the name of the block
instead of hard-coding an arbitrary value (print "S1\n")
pg