| j2daosh | s/yeah...thats//; |
| Jmax- | well it's the fourth return value from localtime eval: (localtime)[3] |
| buubot | Jmax-: 21 |
| Jmax- | eval: [localtime] |
| buubot | Jmax-: [43,27,4,21,3,107,6,110,1] |
| j2daosh | nevermind i got it. i just had to add a "my" to the front or i suppose i could do it that way too |
| Jmax- | :) |
| j2daosh | i forgot all about getting variables from an array lol |
| ofer | <h1>Software error:</h1><pre>Success at gdtest.pl line 19. ---> what does this mean ? |
| j2daosh | i need to wake up... bad |
| ofer | Line 19: my $font = GD::Font->load( './NachlieliCLM-Light.pfa' ) |
| Jmax- | ofer, check GD source or perhaps the documentation covers error messages |
| ofer | word Success is not found in source code :( |
| zamolxes | ofer: you sure that file is in the script's current directory? |
| j2daosh | glob is the function that will "slurp" everything in a file into an array and i can then use a foreach on that array to match lines... correct? |
| zamolxes | j2daosh: no j2daosh: <> |
| ofer | zamolxes, yes |
| j2daosh | ok what function is that then? |
| Jmax- | j2daosh: File::Slurp j2daosh: no core function does that |
| j2daosh | oh |
| zamolxes | j2daosh: <> |
| Jmax- | you could use push @arr, $_ while <> |
| stoat | does anybody has experience with Net::SMTP::SSL ? |
| ofer | sub slurp { local @ARGV = @_; local $/; return <> } there you go |
| Daveman | <FILE> |
| j2daosh | well that sucks... cuz this aint my system so i cant install stuff on it |
| zamolxes | what the fuck? |
| ofer | j2daosh, perldoc perlmodinstall |
| zamolxes | my @lines = <FILE> |
| Jmax- | zamolxes: that won't work that will only occur once |
| f00li5h | ofer: you need to local *ARGV |
| zamolxes | Jmax-: in array context? |
| Jmax- | zamolxes: yes |